Re: gen_tcp:send and file:sendfile

Lukas Larsson <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
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
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-bugs

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.