Welcome! Log In Create A New Profile

Advanced

solaris use eventport proxy upstream bug

June 23, 2015 02:06AM
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
Subject Author Posted

solaris use eventport proxy upstream bug

pascual.lin June 23, 2015 02:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready