Closed ichernetsky closed 9 years ago
If a socket is in CLOSE_WAIT state, gen_tcp:send will be blocked indefinitely. In order to mitigate it, when establishing a connection, send_timeout must be specified. Also, use send_timeout_close to have a socket closed automatically in such case.
Supposedly it solves #8.
Thanks! I have already merged this PR to the development branch.
development
I will tag a new version soon!
Many thanks for taking care of it!
Do you have ETA of new version?
If a socket is in CLOSE_WAIT state, gen_tcp:send will be blocked indefinitely. In order to mitigate it, when establishing a connection, send_timeout must be specified. Also, use send_timeout_close to have a socket closed automatically in such case.