Ignore:
Timestamp:
Jul 18, 2006 12:10:53 AM (18 years ago)
Author:
bennylp
Message:

Fixed several bugs related to TCP:

File:
1 edited

Legend:

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

    r600 r610  
    649649static pj_status_t mod_tsx_layer_unload(void) 
    650650{ 
     651    /* Only self destroy when there's no transaction in the table. 
     652     * Transaction may refuse to destroy when it has pending 
     653     * transmission. If we destroy the module now, application will 
     654     * crash when the pending transaction finally got error response 
     655     * from transport and when it tries to unregister itself. 
     656     */ 
     657    if (pj_hash_count(mod_tsx_layer.htable) != 0) 
     658        return PJ_EBUSY; 
     659 
    651660    /* Destroy mutex. */ 
    652661    pj_mutex_destroy(mod_tsx_layer.mutex); 
     
    928937    if (tsx->transport_flag & TSX_HAS_PENDING_TRANSPORT) { 
    929938        tsx->transport_flag |= TSX_HAS_PENDING_DESTROY; 
     939        tsx->tsx_user = NULL; 
    930940        PJ_LOG(4,(tsx->obj_name, "Will destroy later because transport is " 
    931941                                 "in progress")); 
Note: See TracChangeset for help on using the changeset viewer.