Skip to content

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

eriksoe opened this Issue Nov 11, 2010 · 1 comment

2 participants

eriksoe commented Nov 11, 2010

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.

Trifork member

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.