[erlang-questions] active,N — reset counter or increment?
Max Lapshin
max.lapshin@REDACTED
Tue Aug 2 10:40:49 CEST 2016
Hi, it is not 100% clear for me from documentation if setting {active,1}
reset active counter to 1 or increment it by 1?
So, when I accept socket, I set: inet:setopts(Sock, [{active,50}])
then in
handle_info({tcp,Socket,Bin}, ...) ->
inet:setopts(Socket, [{active,1}]),
...
Does it reset active counter to 1 or increment it by 1 from 49 to 50?
If it increments, then can I ever receive {tcp_passive, Socket} ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160802/c0eea6a8/attachment.htm>
More information about the erlang-questions
mailing list