Browse files

bugfix: reading data on a reused mysql connection (coming from the co…

…nnection pool) could hang due to the inactive read event when "poll" is enabled in nginx.
  • Loading branch information...
1 parent c5d6025 commit dd70c506c3b0425edbde0bd3c229aefc336fb9b0 @agentzh agentzh committed Apr 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/ngx_http_drizzle_keepalive.c
View
2 src/ngx_http_drizzle_keepalive.c
@@ -381,9 +381,11 @@ ngx_http_drizzle_keepalive_close_handler(ngx_event_t *ev)
if (n == -1 && ngx_socket_errno == NGX_EAGAIN) {
/* stale event */
+#if 0
if (ngx_handle_read_event(c->read, 0) != NGX_OK) {
goto close;
}
+#endif
return;
}

0 comments on commit dd70c50

Please sign in to comment.