mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
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:
parent
1a983a0c05
commit
641662e340
@ -54,6 +54,7 @@ ngx_wsasend(ngx_connection_t *c, u_char *buf, size_t size)
|
|||||||
|
|
||||||
if (err == WSAEWOULDBLOCK) {
|
if (err == WSAEWOULDBLOCK) {
|
||||||
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready");
|
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready");
|
||||||
|
wev->ready = 0;
|
||||||
return NGX_AGAIN;
|
return NGX_AGAIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user