[OpenSIPS-Devel] [ opensips-Patches-3478961 ] TCP keepalive support

SourceForge.net noreply at sourceforge.net
Mon Mar 5 18:59:04 CET 2012


Patches item #3478961, was opened at 2012-01-24 08:46
Message generated for change (Comment added) made by bogdan_iancu
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: Accepted
Priority: 5
Private: No
Submitted By: saghul (saghul)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
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

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-03-05 09:59

Message:
OK, patch on SVN.

Please update the docs and close the ticket.

Thanks and regards,
Bogdan

----------------------------------------------------------------------

Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-03-05 09:56

Message:
Hi Saúl,

Thank you, applying the patch right now.

Please update the online documentation on core parameters with the newly
added ones - http://www.opensips.org/Resources/DocsCoreFcn .

Regards,
Bogdan

----------------------------------------------------------------------

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