LP#1042850: Add TCP-level keepalive
authorMike Rylander <mrylander@gmail.com>
Mon, 4 Aug 2014 13:26:56 +0000 (09:26 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 7 Aug 2014 18:05:44 +0000 (14:05 -0400)
commit4b9f1594337b9ec08dcaa8dc3e55049d368fc0a5
treebd9f9760aad1fba81ed8aeaff7fb5d20cf6f30f6
parent4efb15f451d921cf41afadb0628d9827b83d4fde
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