Ignore:
Timestamp:
May 11, 2015 5:57:50 AM (7 years ago)
Author:
ming
Message:

Fixed #1851: Runtime configuration of TCP and TLS keep alive intervals

Thanks to Michele Cicciotti for the patch.

File:
1 edited

Legend:

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

    r4924 r5090  
    218218    } regc; 
    219219 
     220    /** TCP transport settings */ 
     221    struct { 
     222        /** 
     223         * Set the interval to send keep-alive packet for TCP transports. 
     224         * If the value is zero, keep-alive will be disabled for TCP. 
     225         * 
     226         * Default is PJSIP_TCP_KEEP_ALIVE_INTERVAL. 
     227         */ 
     228        long keep_alive_interval; 
     229 
     230    } tcp; 
     231 
     232    /** TLS transport settings */ 
     233    struct { 
     234        /** 
     235         * Set the interval to send keep-alive packet for TLS transports. 
     236         * If the value is zero, keep-alive will be disabled for TLS. 
     237         * 
     238         * Default is PJSIP_TLS_KEEP_ALIVE_INTERVAL. 
     239         */ 
     240        long keep_alive_interval; 
     241 
     242    } tls; 
     243 
    220244} pjsip_cfg_t; 
    221245 
     
    650674 * If the value is zero, keep-alive will be disabled for TCP. 
    651675 * 
     676 * This option can be changed in run-time by settting 
     677 * \a tcp.keep_alive_interval field of pjsip_cfg(). 
     678 * 
    652679 * Default: 90 (seconds) 
    653680 * 
     
    672699 * Set the interval to send keep-alive packet for TLS transports. 
    673700 * If the value is zero, keep-alive will be disabled for TLS. 
     701 * 
     702 * This option can be changed in run-time by settting 
     703 * \a tls.keep_alive_interval field of pjsip_cfg(). 
    674704 * 
    675705 * Default: 90 (seconds) 
Note: See TracChangeset for help on using the changeset viewer.