]> git.kaiwu.me - nginx.git/commitdiff
Win32: added missing reset of wev->ready on WSAEWOULDBLOCK.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 29 May 2013 15:18:22 +0000 (19:18 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 29 May 2013 15:18:22 +0000 (19:18 +0400)
This fixes connection hang with websockets proxy, and likely some other
places as well.

src/os/win32/ngx_wsasend.c

index 55f325dc4e3227f647ddcdfa252c3ea4912148e7..d6a23d17bcc8fa83c5ddf5bd26d54acc4aac3e73 100644 (file)
@@ -54,6 +54,7 @@ ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size)
 
     if (err == WSAEWOULDBLOCK) {
         ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready");
+        wev->ready = 0;
         return NGX_AGAIN;
     }