trustmaster / goflow

Flow-based and dataflow programming library for Go (golang)
MIT License
1.6k stars 125 forks source link

IIP in Component InPort results in uninitialized Channel and deadlocks. #22

Closed luiscarrasco closed 5 years ago

luiscarrasco commented 10 years ago

If I have a Component with a port and add an Initial Information Package to it without making the port an Inport for the network, the underlying channel does not get initialized.

In component.go the check for the channel not being nil will be true and therefore the recv handler does not get initialized. This results in a deadlock of threads.

I hope this is descriptive enough.

trustmaster commented 5 years ago

Should have been fixed in current master.