katja-beam / katja

A simple Riemann client written in Erlang.
https://hex.pm/packages/katja
ISC License
27 stars 19 forks source link

If TCP socket in CLOSE_WAIT state, gen_tcp:send/2 gets blocked indefinitely #8

Closed ichernetsky closed 8 years ago

ichernetsky commented 9 years ago

This causes a process queue to grow indefinitely as well. In order to avoid it, send_timeout option for gen_tcp:connect/4 should be used. Also, it is recommended to use send_timeout_close, in order to have a socket closed on timeout automatically.

nifoc commented 8 years ago

I finally tagged a new version (v0.9) that includes your PR.

Very sorry for the way too long delay!