Opened 17 years ago
Closed 17 years ago
#375 closed defect (fixed)
Bug in ioqueue prevents re-registering more than PJ_IOQUEUE_MAX_HANDLES (thanks Phil Torre)
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-0.6.0 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
With PJ_IOQUEUE_HAS_SAFE_UNREG is set (the default setting), socket keys should have been put back to free_list once the socket is unregistered, to allow the keys to be reused by subsequent sockets. This task is done by scan_closing_keys() function.
A bug prevents scan_closing_keys() from being called, causing unregistered keys to never been put back to free_list, and registration will fail after PJ_IOQUEUE_MAX_HANDLES sockets are unregistered.
Thanks Phil Torre for reporting this.
Change History (1)
comment:1 Changed 17 years ago by bennylp
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Fixed in r1441, by adding call to scan_closing_keys() in pj_ioqueue_register_sock()