Skip Menu |

This queue is for tickets about the Danga-Socket CPAN distribution.

Report information
The Basics
Id: 129487
Status: resolved
Priority: 0/
Queue: Danga-Socket

Owner: NML [...]
Requestors: e [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.62


Subject: epoll: fix misordered EPOLL_CTL_DEL call
Date: Wed, 8 May 2019 19:02:56 +0000
To: bug-Danga-Socket [...]
From: Eric Wong <e [...]>
Download (untitled) / with headers
text/plain 242b
Any operations on an fd after POSIX::close() are invalid, so epoll_ctl will fail. Worse off, in a multi-threaded Perl, the fd may be reused by another thread and EPOLL_CTL_DEL can hit the wrong file description as a result. Patch attached.

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 452b
The bug is fixed in Please test and/or review the code. It's a preview version and I'll release normal 1.62 in a week or so if no new easy to fix problems are discovered. - CPAN Testers: (all green at the time of the posting) - GitHub:

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to