[erlang-questions] gen_tcp:send {error, timeout} and ways to restore situation?

Max Lapshin <>
Mon Sep 12 19:55:42 CEST 2016


As far as I know, when gen_tcp:send returns {error,timeout}, it means that
it failed to send required amount of data in a requested time and now
socket is in "bad" state. Not closed, but not ready for work, because we do
not know how much data have been transmitted.

Has anything changed?

Is it possible to understand, how many data from packet have been sent to
OS and try to restore situation on socket and resend the rest of packet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160912/22b6d3dc/attachment.html>

More information about the erlang-questions mailing list