Commit b0b5b52
issue: 1792164 Remove epoll event when it is consumed
Zcopy notification mechanism (error queue) adds an event EPOLLERR to
respective epfd_info object and it is never removed. This leads to the
issue that epoll_wait() returns EPOLLERR event endlessly and doesn't
enter polling loops.
Fix this by removing EPOLLERR event when socket becomes not "errorable".
The fix avoids fake EPOLLERR events and allows epoll_wait_helper() to
perform polling.1 parent 1392cb6 commit b0b5b52
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
| |||
0 commit comments