Changeset 3298 for pjproject/trunk


Ignore:
Timestamp:
Aug 27, 2010 3:19:00 AM (14 years ago)
Author:
bennylp
Message:

Fixed #1108: deadlock in DNS resolver (thanks Bogdan Krakowski for the report)

File:
1 edited

Legend:

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

    r2724 r3298  
    13651365    pj_hash_set(NULL, resolver->hquerybyres, &q->key, sizeof(q->key), 0, NULL); 
    13661366 
     1367    /* Workaround for deadlock problem in #1108 */ 
     1368    pj_mutex_unlock(resolver->mutex); 
     1369 
    13671370    /* Notify applications first, to allow application to modify the  
    13681371     * record before it is saved to the hash table. 
     
    13821385        } 
    13831386    } 
     1387 
     1388    /* Workaround for deadlock problem in #1108 */ 
     1389    pj_mutex_lock(resolver->mutex); 
    13841390 
    13851391    /* Save/update response cache. */ 
Note: See TracChangeset for help on using the changeset viewer.