Ignore:
Timestamp:
Oct 4, 2007 9:50:36 AM (17 years ago)
Author:
bennylp
Message:

Ticket #95: Keep-alive mechanism for TCP and TLS transports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r1469 r1473  
    266266 * before the transport is destroyed. Value is in seconds. 
    267267 * 
    268  * Default: 60 
     268 * Default: 600 
    269269 */ 
    270270#ifndef PJSIP_TRANSPORT_IDLE_TIME 
    271 #   define PJSIP_TRANSPORT_IDLE_TIME    60 
     271#   define PJSIP_TRANSPORT_IDLE_TIME    600 
    272272#endif 
    273273 
     
    295295#ifndef PJSIP_TCP_TRANSPORT_BACKLOG 
    296296#   define PJSIP_TCP_TRANSPORT_BACKLOG  5 
     297#endif 
     298 
     299 
     300/** 
     301 * Set the interval to send keep-alive packet for TCP transports. 
     302 * If the value is zero, keep-alive will be disabled for TCP. 
     303 * 
     304 * Default: 90 (seconds) 
     305 * 
     306 * @see PJSIP_TCP_KEEP_ALIVE_DATA 
     307 */ 
     308#ifndef PJSIP_TCP_KEEP_ALIVE_INTERVAL 
     309#   define PJSIP_TCP_KEEP_ALIVE_INTERVAL    90 
     310#endif 
     311 
     312 
     313/** 
     314 * Set the payload of the TCP keep-alive packet. 
     315 * 
     316 * Default: CRLF 
     317 */ 
     318#ifndef PJSIP_TCP_KEEP_ALIVE_DATA 
     319#   define PJSIP_TCP_KEEP_ALIVE_DATA        { "\r\n", 2 } 
     320#endif 
     321 
     322 
     323/** 
     324 * Set the interval to send keep-alive packet for TLS transports. 
     325 * If the value is zero, keep-alive will be disabled for TLS. 
     326 * 
     327 * Default: 90 (seconds) 
     328 * 
     329 * @see PJSIP_TLS_KEEP_ALIVE_DATA 
     330 */ 
     331#ifndef PJSIP_TLS_KEEP_ALIVE_INTERVAL 
     332#   define PJSIP_TLS_KEEP_ALIVE_INTERVAL    90 
     333#endif 
     334 
     335 
     336/** 
     337 * Set the payload of the TLS keep-alive packet. 
     338 * 
     339 * Default: CRLF 
     340 */ 
     341#ifndef PJSIP_TLS_KEEP_ALIVE_DATA 
     342#   define PJSIP_TLS_KEEP_ALIVE_DATA        { "\r\n", 2 } 
    297343#endif 
    298344 
Note: See TracChangeset for help on using the changeset viewer.