Fix bug in delayed connection handling

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent 912976fe30
commit 318b7bf041
  1. 1
      src/common/memcached.c
  2. 1
      src/modules/mod_fastcgi.c
  3. 1
      src/modules/mod_proxy.c
  4. 1
      src/modules/mod_scgi.c

@ -295,6 +295,7 @@ static void memcached_connect(liMemcachedCon *con) {
case EINPROGRESS:
case EALREADY:
case EINTR:
case EISCONN:
memcached_start_io(con);
li_ev_io_add_events(con->loop, &con->con_watcher, EV_READ | EV_WRITE);
break;

@ -683,6 +683,7 @@ static liHandlerResult fastcgi_statemachine(liVRequest *vr, fastcgi_connection *
case EINPROGRESS:
case EALREADY:
case EINTR:
case EISCONN:
fcon->state = FS_CONNECTING;
return LI_HANDLER_GO_ON;
case EAGAIN: /* backend overloaded */

@ -330,6 +330,7 @@ static liHandlerResult proxy_statemachine(liVRequest *vr, proxy_connection *pcon
case EINPROGRESS:
case EALREADY:
case EINTR:
case EISCONN:
pcon->state = SS_CONNECTING;
return LI_HANDLER_GO_ON;
case EAGAIN: /* backend overloaded */

@ -436,6 +436,7 @@ static liHandlerResult scgi_statemachine(liVRequest *vr, scgi_connection *scon)
case EINPROGRESS:
case EALREADY:
case EINTR:
case EISCONN:
scon->state = SS_CONNECTING;
return LI_HANDLER_GO_ON;
case EAGAIN: /* backend overloaded */

Loading…
Cancel
Save