Ticket #376 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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.8.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

comment:1 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1440

Note: See TracTickets for help on using tickets.