Why doesn't on_eof get called on this example?
Alexander Karelas
alex.karelas at gmail.com
Mon Jun 23 22:47:03 CEST 2014
http://stackoverflow.com/questions/24373840/why-isnt-on-eof-called-in-this-anyeventhandle-example
I notice that when there is on on_read function, then on_eof doesn't get
called when the telnet client connects and immediately disconnects.
However when an $hdl->on_read(sub{ say "READ!" }); statement is
executed, then the on_eof event gets called even though the on_read
event never gets called.
So why is on_read needed for on_eof, if it doesn't get executed? Should
this be in the documentation? Maybe this could be classified as a bug?
- Alex
More information about the anyevent
mailing list