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	Mon May 27 16:54:09 2013 +0400
+++ b/src/os/win32/ngx_wsasend.c	Wed May 29 19:18:22 2013 +0400
@@ -54,6 +54,7 @@
 
     if (err == WSAEWOULDBLOCK) {
         ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready");
+        wev->ready = 0;
         return NGX_AGAIN;
     }