#1894 closed enhancement (fixed)
Improve ioqueue performance on multithreadeded environment
Reported by: | nanang | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.5 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
This ticket will apply the following updates on the ioqueue (most affected implementations are select & epoll):
- Protection against high fds (i.e: fd > FD_SETSIZE) in ioqueue socket registration to avoid potential memory corruption caused by select().
- Added new ioqueue API pj_ioqueue_trylock_key().
- Event dispatcher functions should not wait if an ioqueue key mutex is locked by another thread (perhaps the event for the key is being processed by that thread), skip this key and process next ioqueue key.
Thank you Christian Ambach for the patches.
Change History (2)
comment:1 Changed 9 years ago by nanang
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 9 years ago by nanang
In 5196:
Note: See
TracTickets for help on using
tickets.
In 5194: