Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
May 29, 2013 11:20AM
details: http://hg.nginx.org/nginx/rev/53eb1e67e432
branches:
changeset: 5232:53eb1e67e432
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed May 29 19:18:22 2013 +0400
description:
Win32: added missing reset of wev->ready on WSAEWOULDBLOCK.

This fixes connection hang with websockets proxy, and likely some other
places as well.

diffstat:

src/os/win32/ngx_wsasend.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

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


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Maxim Dounin 908 May 29, 2013 11:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 204
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready