Ticket #376 (closed defect: fixed)
Bug in ioqueue prevents re-registering more than PJ_IOQUEUE_MAX_HANDLES (thanks Phil Torre)
|Reported by:||bennylp||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:|
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.