]> git.evergreen-ils.org Git - SIPServer.git/commit
LP#1042850: Add TCP-level keepalive
authorMike Rylander <mrylander@gmail.com>
Mon, 4 Aug 2014 13:26:56 +0000 (09:26 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 5 Dec 2014 17:17:54 +0000 (12:17 -0500)
commit6d1ae5319e0c7ba07e20aa14805fd015dd40439e
tree1cec0f6d39a9b6a2456eeb4e1810bb66a81fb256
parent5ab053290b08290594b40a4b034135346b5f0d12
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>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
SIPServer.pm