[erlang-questions] gen_tcp:recv/3 timeout

Ahmed Omar spawn.think@REDACTED
Sat Dec 31 00:32:54 CET 2011


after u got {error, timeout}, if you do gen_tcp:recv(Sock, 0, T), u will
get the data, as the data was not consumed/sent from the port driver yet.
(as long as socket was not closed)
On Fri, Dec 30, 2011 at 9:39 PM, Roberto Ostinelli <
roberto.ostinelli@REDACTED> wrote:

> ok, but how do you retrieve it? does it get stashed back again on the tcp
> stack?
>
>
>
> On 30/dic/2011, at 11:45, Ahmed Omar <spawn.think@REDACTED> wrote:
>
> > AFAIK, data doesn't get lost except if the socket is closed from the
> other side.
>



-- 
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111231/b24dd686/attachment.htm>


More information about the erlang-questions mailing list