trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
726 stars 62 forks source link

tcp recv() doesn't return on remote disconnect #39

Closed eriksoe closed 14 years ago

eriksoe commented 14 years ago

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).
%% make telnet disconnect

Expected behaviour:

recv() returns with result {error,closed}.

Observed behaviour:

recv() doesn't return.

krestenkrab commented 14 years ago

Closing as this looks like a copy of isssue#38; which is now closed.