[erlang-questions] Socket keepalive option

Greg Burri <>
Thu Jun 12 13:56:12 CEST 2008

Is it possible to set the option {keepalive, Boolean} to a socket by
the server side after the socket has been created ?

I try to do that with an application under Yaws (http://yaws.hyber.org/) :

out(A) ->
   inet:setopts(A#arg.clisock, [{active, true}, {keepalive, true}]),

When the server waits and it doesn't send data I capture the TCP
stream with Wireshark (http://www.wireshark.org/) and see if there is
some 'Ack' from the server... but I don't see anything..

Is anyone have an idea about that ?


More information about the erlang-questions mailing list