send_timeout doesn't work

Evgeniy Khramtsov <>
Tue Mar 15 15:22:16 CET 2011

It seems like there is a bug in send_timeout option of a TCP socket: the 
timeout is completely ignored (at least in active-once mode).
The code to reproduce:
Just compile it and start lock:listen() in one shell and lock:send() in 
another: over a time you will see that the receiving process is locked 
in prim_inet:send/3 and doesn't process current message in the mailbox. 
You can also play with PORT and SEND_TIMEOUT macros if needed.

Versions tested: R13B02 and R14B01 (on Debian 2.6.32-5-amd64 SMP).

Evgeniy Khramtsov, ProcessOne.

More information about the erlang-bugs mailing list