|
|
@ -1,9 +1,9 @@
|
|
|
|
--- nginx-1.0.10/src/event/modules/ngx_epoll_module.c 2011-09-30 22:12:53.000000000 +0800
|
|
|
|
--- nginx-1.0.10/src/event/modules/ngx_epoll_module.c 2011-09-30 22:12:53.000000000 +0800
|
|
|
|
+++ nginx-1.0.10-patched/src/event/modules/ngx_epoll_module.c 2011-11-07 18:07:04.764111952 +0800
|
|
|
|
+++ nginx-1.0.10-patched/src/event/modules/ngx_epoll_module.c 2011-11-30 11:08:46.775817019 +0800
|
|
|
|
@@ -681,6 +681,18 @@
|
|
|
|
@@ -682,6 +682,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
wev = c->write;
|
|
|
|
wev = c->write;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((revents & EPOLLOUT) && wev->active) {
|
|
|
|
+ if (c->fd == -1 || wev->instance != instance) {
|
|
|
|
+ if (c->fd == -1 || wev->instance != instance) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ /*
|
|
|
@ -15,7 +15,6 @@
|
|
|
|
+ "epoll: stale event %p", c);
|
|
|
|
+ "epoll: stale event %p", c);
|
|
|
|
+ continue;
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
if ((revents & EPOLLOUT) && wev->active) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (flags & NGX_POST_THREAD_EVENTS) {
|
|
|
|
if (flags & NGX_POST_THREAD_EVENTS) {
|
|
|
|
|
|
|
|
wev->posted_ready = 1;
|
|
|
|