Ignore:
Timestamp:
Oct 5, 2007 6:41:04 AM (12 years ago)
Author:
bennylp
Message:

Related to ticket #95: bug in TLS transport: keep-alive timer is not cancelled when transport is destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tcp.c

    r1473 r1476  
    663663    /* Mark transport as closing */ 
    664664    tcp->is_closing = PJ_TRUE; 
     665 
     666    /* Stop keep-alive timer. */ 
     667    if (tcp->ka_timer.id) { 
     668        pjsip_endpt_cancel_timer(tcp->listener->endpt, &tcp->ka_timer); 
     669        tcp->ka_timer.id = PJ_FALSE; 
     670    } 
    665671 
    666672    /* Cancel all delayed transmits */ 
Note: See TracChangeset for help on using the changeset viewer.