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

Alexey Romanov alexey.v.romanov@REDACTED
Fri Apr 1 12:58:50 CEST 2011


I see, thanks.

Yours, Alexey Romanov



On Thu, Mar 31, 2011 at 7:05 PM, Michael Santos
<michael.santos@REDACTED> wrote:
> 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