Changeset 4220 for pjproject


Ignore:
Timestamp:
Aug 7, 2012 3:32:34 AM (12 years ago)
Author:
nanang
Message:

Fixed #1565: deadlock in DNS resolver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c

    r3553 r4220  
    12491249    pj_hash_set(NULL, resolver->hquerybyres, &q->key, sizeof(q->key), 0, NULL); 
    12501250 
     1251    /* Workaround for deadlock problem in #1565 (similar to #1108) */ 
     1252    pj_mutex_unlock(resolver->mutex); 
     1253 
    12511254    /* Call application callback, if any. */ 
    12521255    if (q->cb) 
     
    12601263        cq = cq->next; 
    12611264    } 
     1265 
     1266    /* Workaround for deadlock problem in #1565 (similar to #1108) */ 
     1267    pj_mutex_lock(resolver->mutex); 
    12621268 
    12631269    /* Clear data */ 
Note: See TracChangeset for help on using the changeset viewer.