# HG changeset patch # User Maxim Dounin # Date 1369840702 -14400 # Node ID 53eb1e67e4322de00537b867b62662b8ef485002 # Parent 05c53652e7b4784890c29690834a770a4918d909 Win32: added missing reset of wev->ready on WSAEWOULDBLOCK. This fixes connection hang with websockets proxy, and likely some other places as well. 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; }