[OpenSIPS-Devel] [ opensips-Patches-3478961 ] TCP keepalive support
SourceForge.net
noreply at sourceforge.net
Tue Jan 24 17:46:12 CET 2012
Patches item #3478961, was opened at 2012-01-24 08:46
Message generated for change (Tracker Item Submitted) made by saghul
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3478961&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: saghul (saghul)
Assigned to: Nobody/Anonymous (nobody)
Summary: TCP keepalive support
Initial Comment:
Hi,
The attached patch provides TCP keepalive to OpenSIPS. During testing we found that if a TCP connection is kept idle on one direction for a long time some routers would half close it, so even if all clients usually send TCP keepalives it's also good to do it from the server side.
The patch adds 4 new core configuration options:
- tcp_keepalive (boolean): enable / disable TCP keepalive
- tcp_keepcount: number of keepalives to send before closing the connection (Linux only)
- tcp_keepidle: amount of time before OpenSIPS will start to send keepalives if the connection is idle (Linux only)
- tcp_keepinterval: interval between keepalive probes, if the previous one failed (Linux only)
Please consider the patch for inclusion, it has been running for some days now and I didn't run into issues.
Regards,
PS: Code was ported from the SIP-Router project.
--
Saúl Ibarra Corretgé
AG Projects
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3478961&group_id=232389
More information about the Devel
mailing list