Ignore:
Timestamp:
Jul 28, 2008 8:17:04 PM (16 years ago)
Author:
bennylp
Message:

Ticket #538: Closed TCP connection should be removed from the hash table immediately

File:
1 edited

Legend:

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

    r2131 r2180  
    18401840    tdata_op_key->tdata = NULL; 
    18411841 
     1842    if (tdata_op_key->callback) { 
     1843        /* 
     1844         * Notify sip_transport.c that packet has been sent. 
     1845         */ 
     1846        if (bytes_sent == 0) 
     1847            bytes_sent = -PJ_RETURN_OS_ERROR(OSERR_ENOTCONN); 
     1848 
     1849        tdata_op_key->callback(&tls->base, tdata_op_key->token, bytes_sent); 
     1850    } 
     1851 
    18421852    /* Check for error/closure */ 
    18431853    if (bytes_sent <= 0) { 
     
    18541864        /* Mark last activity */ 
    18551865        pj_gettimeofday(&tls->last_activity); 
    1856     } 
    1857  
    1858     if (tdata_op_key->callback) { 
    1859         /* 
    1860          * Notify sip_transport.c that packet has been sent. 
    1861          */ 
    1862         if (bytes_sent == 0) 
    1863             bytes_sent = -PJ_RETURN_OS_ERROR(OSERR_ENOTCONN); 
    1864  
    1865         tdata_op_key->callback(&tls->base, tdata_op_key->token, bytes_sent); 
    18661866    } 
    18671867} 
Note: See TracChangeset for help on using the changeset viewer.