Ignore:
Timestamp:
Jun 19, 2014 9:42:02 AM (10 years ago)
Author:
nanang
Message:

Fix #1773: Added group lock to SIP transport to avoid race condition between transport callback and destroy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/ssl_sock.h

    r4860 r4862  
    553553    unsigned long       last_native_err; 
    554554 
     555    /** 
     556     * Group lock assigned to the ioqueue key. 
     557     */ 
     558    pj_grp_lock_t *grp_lock; 
     559 
    555560} pj_ssl_sock_info; 
    556561 
     
    561566typedef struct pj_ssl_sock_param 
    562567{ 
     568    /** 
     569     * Optional group lock to be assigned to the ioqueue key. 
     570     * 
     571     * Note that when a secure socket listener is configured with a group 
     572     * lock, any new secure socket of an accepted incoming connection 
     573     * will have its own group lock created automatically by the library, 
     574     * this group lock can be queried via pj_ssl_sock_get_info() in the info 
     575     * field pj_ssl_sock_info::grp_lock. 
     576     */ 
     577    pj_grp_lock_t *grp_lock; 
     578 
    563579    /** 
    564580     * Specifies socket address family, either pj_AF_INET() and pj_AF_INET6(). 
Note: See TracChangeset for help on using the changeset viewer.