Closed eriksoe closed 14 years ago
Fixed in https://github.com/krestenkrab/erjang/commit/f3119af179830673e98c53317bf157e2e131a8af. Main-loop was not triggered to be re-run when making synchronous driver invocation erlang:port_control/3. This caused modified timer to not be recognized.
== To reproduce: {ok, P} = gen_tcp:listen(12321, [binary, {active,false}]). {ok,Q} = gen_tcp:accept(P). %% telnet to localhost:12321 at this point; don't send anything. gen_tcp:recv(Q, 0, 250). %% wait for 1 second
== Expected behaviour: The result {error,timeout} after 250ms
== Observed behaviour: Timeout is not in effect. Erjang waits for input on the socket. Closing the connection from the telnet side doesn't even make recv() return.