[erlang-bugs] gen_tcp:send and file:sendfile

Lukas Larsson lukas@REDACTED
Thu Dec 11 10:06:10 CET 2014


Hello,

Thanks for the bug report, I have seen something similar that might be 
connected to this in our nightly builds. I will try to reproduce the error.

Lukas
On 10/12/14 08:03, Slava Yurin wrote:
> Hi all.
> I have error behavior of gen_tcp:send/2 + file:sendfile/5.
> If data for send falls into buffer in port and happen file:sendfile/5 
> call, then
> buffer not flushed and data from file send. After that any call 
> gen_tcp:send/2
> only append data to buffer and not send anything. And if not set 
> send_timeout
> option gen_tcp:send will hang after exceed size of buffer. This is my 
> guess.
> I attach test file and log of it usage.
> Have reproducible error only when [{delay_send, true}, {nodelay, 
> false}], but in
> real usage see same behavior without this options. Can't reproduce it on
> localhost and 1 file.
>
>
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20141211/331dbed2/attachment.htm>


More information about the erlang-bugs mailing list