changeset 5232:53eb1e67e432

Win32: added missing reset of wev->ready on WSAEWOULDBLOCK. This fixes connection hang with websockets proxy, and likely some other places as well.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 29 May 2013 19:18:22 +0400
parents 05c53652e7b4
children 00dbfac67e48
files src/os/win32/ngx_wsasend.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }