katja-beam / katja

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

Set timeout for send operation #9

Closed ichernetsky closed 9 years ago

ichernetsky commented 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.

ichernetsky commented 9 years ago

Supposedly it solves #8.

nifoc commented 9 years ago

Thanks! I have already merged this PR to the development branch.

I will tag a new version soon!

ichernetsky commented 9 years ago

Many thanks for taking care of it!

ichernetsky commented 8 years ago

Do you have ETA of new version?