[erlang-questions] blocking vs non-blocking gen_tcp:accept()
Serge Aleynikov
saleyn@REDACTED
Sun Mar 2 04:57:41 CET 2008
Indeed! Moreover, a gen_tcp_server behavior would be a very useful
addition to the OTP that would generalize a common acceptor/connector
pattern.
Serge
Claes Wikstrom wrote:
> Matthias Lang wrote:
>> Robin writes:
>> > Does gen_tcp:accept() block the entire OS thread or just the calling
>> > erlang process?
>>
>> Just the erlang process. (verifying this yourself is straightforward)
>>
>
> Having accept() as function that receives a message as opposed
> to hanging would make a lot of sense though.
>
> I know that it's possible to use the lowlevel libs to accomplish
> this but it should be exposed to user level (and documented) in
> a manner similar to the {tcp, Sock, Data} message we get from an
> active socket.
>
> Maybe we should have a list similar to the
> http://brainstorm.ubuntu.com/ list where people
> get to tell the core developers what they should
> do :-)
>
>
>
> /klacke
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list