[erlang-questions] gen_tcp nonblocking send
Thu May 1 16:03:39 CEST 2008
On 01.05.2008 17:50 Valentin Micic wrote:
> Does this mean that O_NDELAY is not supported in Erlang? Not even as an
> undocumented feature? ;-)
Internally, sockets are non-blocking (see
erts/emulator/drivers/common/inet_drv.c), but as far as I understand,
gen_tcp and all the underlying libraries like prim_inet expose only
blocking send API to erlang processes.
There's nice workaround, as Per suggested. I tried it, and it works like
charm (thanks again, Per!).
There's also unresolved problem with hot code upgrade for blocked
process, but for me this is a minor issue.
More information about the erlang-questions