]> git.evergreen-ils.org Git - working/SIPServer.git/commit
LP#1042850: Add TCP-level keepalive user/miker/lp-1042850-setsockopt-keepalive
authorMike Rylander <mrylander@gmail.com>
Mon, 4 Aug 2014 13:26:56 +0000 (09:26 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 4 Aug 2014 13:26:56 +0000 (09:26 -0400)
commita8ca2fac6469852a4205ece58e5c0d1371658cf6
tree304f6f27fb6388a4a978570d7942d4656c252577
parent37e8e8e185466fe7cff396a5ed4e4beaf80320ae
LP#1042850: Add TCP-level keepalive

Some client TCP stacks fail to actually close down their sockets
all the way, leading to a pile up of stale backends that can never
go away.

So, we will use Linux's TCP_KEEPALIVE tuning capabilities to probe
the connection on a regular basis.  This should detect the half-
closed situation and let the backend shut itself down.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
SIPServer.pm