[nginx] Win32: added missing reset of wev->ready on WSAEWOULDBLOCK.

Maxim Dounin mdounin at mdounin.ru
Wed May 29 15:18:43 UTC 2013


details:   http://hg.nginx.org/nginx/rev/53eb1e67e432
branches:  
changeset: 5232:53eb1e67e432
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed May 29 19:18:22 2013 +0400
description:
Win32: added missing reset of wev->ready on WSAEWOULDBLOCK.

This fixes connection hang with websockets proxy, and likely some other
places as well.

diffstat:

 src/os/win32/ngx_wsasend.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/src/os/win32/ngx_wsasend.c b/src/os/win32/ngx_wsasend.c
--- a/src/os/win32/ngx_wsasend.c
+++ b/src/os/win32/ngx_wsasend.c
@@ -54,6 +54,7 @@ ngx_wsasend(ngx_connection_t *c, u_char 
 
     if (err == WSAEWOULDBLOCK) {
         ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready");
+        wev->ready = 0;
         return NGX_AGAIN;
     }
 



More information about the nginx-devel mailing list