keepalive timer?

Matthias Lang matthias@REDACTED
Tue Jun 22 10:14:15 CEST 2004


 Matthias >>>It appears that you can't 

 Per> > Actually you can

 [Plus further info from David Hopwood saying that it's possible on
 many if not most popular OSs]

That's what I get for shooting my mouth off without checking the
source and without checking the right manpage.

Looking at it from Erlang again, gen_tcp currently (R9C) doesn't let
you set the keepalive timeout, even if the OS supports doing it on a
per-socket basis. And I checked the source before writing that :-). To
add it, you'd need to hack it in

   erts/emulator/drivers/common/inet_drv.c 
   lib/kernel/src/inet.erl
   lib/kernel/src/prim_inet.erl

Matthias




More information about the erlang-questions mailing list