<div>Hi all.</div><div>š</div><div>I have error behavior of gen_tcp:send/2 + file:sendfile/5.</div><div>š</div><div>If data for send falls into buffer in port and happen file:sendfile/5 call, then</div><div>buffer not flushed and data from file send. After that any call gen_tcp:send/2</div><div>only append data to buffer and not send anything. And if not set send_timeout</div><div>option gen_tcp:send will hang after exceed size of buffer. This is my guess.</div><div>š</div><div>I attach test file and log of it usage.</div><div>š</div><div>Have reproducible error only when [{delay_send, true}, {nodelay, false}], but in</div><div>real usage see same behavior without this options. Can'tšreproduce it on</div><div>localhost and 1 file.</div>