Closed eriksoe closed 14 years ago
{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
recv() returns with result {error,closed}.
recv() doesn't return.
Closing as this looks like a copy of isssue#38; which is now closed.
To reproduce:
Expected behaviour:
recv() returns with result {error,closed}.
Observed behaviour:
recv() doesn't return.