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

This fixes connection hang with websockets proxy, and likely some other
places as well.
This commit is contained in:
Maxim Dounin 2013-05-29 19:18:22 +04:00
parent 1a983a0c05
commit 641662e340

View 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;
}