Changeset 1441


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib/src/pj/ioqueue_select.c

    r1158 r1441  
    136136#include "ioqueue_common_abs.c" 
    137137 
     138#if PJ_IOQUEUE_HAS_SAFE_UNREG 
     139/* Scan closing keys to be put to free list again */ 
     140static void scan_closing_keys(pj_ioqueue_t *ioqueue); 
     141#endif 
     142 
    138143/* 
    139144 * pj_ioqueue_name() 
     
    338343     */ 
    339344#if PJ_IOQUEUE_HAS_SAFE_UNREG 
     345 
     346    /* Scan closing_keys first to let them come back to free_list */ 
     347    scan_closing_keys(ioqueue); 
     348 
    340349    pj_assert(!pj_list_empty(&ioqueue->free_list)); 
    341350    if (pj_list_empty(&ioqueue->free_list)) { 
Note: See TracChangeset for help on using the changeset viewer.