solaris use eventport proxy upstream bug

pascual.lin nginx-forum at nginx.us
Tue Jun 23 06:06:48 UTC 2015


environment:  solaris11 + http proxy + upstream + keepalive + method get

first request ok

second request will hangup,after  eventport del event
there is no event add NGX_READ_EVENT or NGX_WRITE_EVENT
here is my patch

--- ngx_event_connect.c.src     2015-06-23 12:00:49.232424329 +0800
+++ ngx_event_connect.c 2015-06-23 12:01:17.644539000 +0800
@@ -24,6 +24,11 @@

     rc = pc->get(pc, pc->data);
     if (rc != NGX_OK) {
+        c = pc->connection;
+        rev = c->read;
+        wev = c->write;
+        rc = -1;
+        goto register_event;
         return rc;
     }

@@ -195,6 +200,8 @@
         return NGX_OK;
     }

+register_event:
+
     if (ngx_event_flags & NGX_USE_CLEAR_EVENT) {




Sorry for my poor English

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,259798,259798#msg-259798



More information about the nginx mailing list