[SR-Users] tcp_keepalive, tcp_keepidle and tcp_connection_lifetime

Daniel Tryba daniel at pocos.nl
Thu Jan 30 12:28:25 CET 2014


On Thursday 30 January 2014 06:41:06 Owais ul Haq wrote:
> I am trying to understand kamailio.cfg parameters. Can some one please help
> me in understanding what these parameters do exactly when set.
> tcp_keepalive, tcp_keepidle and tcp_connection_lifetime. I have a general
> understanding of tcp. Want to know exact role of these parameters in
> kamailio.cfg. Thanking in advance.


According to 
http://www.kamailio.org/wiki/cookbooks/3.2.x/core#tcp_keepalive
these options manipulates the socket options as decribed in "man 7 tcp"

So:
tcp_keepalive

Enables keepalive for tcp (sets SO_KEEPALIVE socket option)

tcp_keepalive = yes | no (default yes)

enables:
       tcp_keepalive_time (integer; default: 7200; since Linux 2.2)
              The number of seconds a connection needs to be idle  before  TCP
              begins sending out keep-alive probes.  Keep-alives are only sent
              when the SO_KEEPALIVE socket option  is  enabled.   The  default
              value  is  7200 seconds (2 hours).  An idle connection is termi‐
              nated after approximately an additional 11 minutes (9 probes  an
              interval of 75 seconds apart) when keep-alive is enabled.

              Note that underlying connection tracking mechanisms and applica‐
              tion timeouts may be much shorter.


-- 

POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/   - http://www.sipo.nl/
K.v.K. Eindhoven 17097024



More information about the sr-users mailing list