Ignore:
Timestamp:
Sep 19, 2007 12:03:28 PM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #376: Bug in ioqueue prevents re-registering more than PJ_IOQUEUE_MAX_HANDLES (thanks Phil Torre)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ioqueue_select.c

    r1405 r1440  
    120120#include "ioqueue_common_abs.c" 
    121121 
     122#if PJ_IOQUEUE_HAS_SAFE_UNREG 
     123/* Scan closing keys to be put to free list again */ 
     124static void scan_closing_keys(pj_ioqueue_t *ioqueue); 
     125#endif 
     126 
    122127/* 
    123128 * pj_ioqueue_name() 
     
    322327     */ 
    323328#if PJ_IOQUEUE_HAS_SAFE_UNREG 
     329 
     330    /* Scan closing_keys first to let them come back to free_list */ 
     331    scan_closing_keys(ioqueue); 
     332 
    324333    pj_assert(!pj_list_empty(&ioqueue->free_list)); 
    325334    if (pj_list_empty(&ioqueue->free_list)) { 
Note: See TracChangeset for help on using the changeset viewer.