[erlang-questions] Re: Do gen_tcp sockets support recv_timeout option?

Michael Santos <>
Thu Mar 31 17:05:41 CEST 2011


On Thu, Mar 31, 2011 at 01:54:19PM +0400, Alexey Romanov wrote:
> It isn't listed in http://www.erlang.org/doc/man/inet.html#setopts-2,
> but Googling finds some uses:
> 
> e.g. https://bitbucket.org/basho/casbench/src/7bba90cbf3e9/src/thrift_socket_server.erl

This code is using recv_timeout as the timeout parameter for a
gen_tcp:recv/3 ({active,false} socket).

See:

https://bitbucket.org/basho/casbench/src/4265a37d2200/src/thrift_socket_transport.erl#cl-51




More information about the erlang-questions mailing list