Mercurial > hg > nginx-quic
comparison src/os/win32/ngx_wsasend.c @ 5232:53eb1e67e432
Win32: added missing reset of wev->ready on WSAEWOULDBLOCK.
This fixes connection hang with websockets proxy, and likely some other
places as well.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 29 May 2013 19:18:22 +0400 |
parents | d620f497c50f |
children |
comparison
equal
deleted
inserted
replaced
5231:05c53652e7b4 | 5232:53eb1e67e432 |
---|---|
52 | 52 |
53 err = ngx_socket_errno; | 53 err = ngx_socket_errno; |
54 | 54 |
55 if (err == WSAEWOULDBLOCK) { | 55 if (err == WSAEWOULDBLOCK) { |
56 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready"); | 56 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, "WSASend() not ready"); |
57 wev->ready = 0; | |
57 return NGX_AGAIN; | 58 return NGX_AGAIN; |
58 } | 59 } |
59 | 60 |
60 wev->error = 1; | 61 wev->error = 1; |
61 ngx_connection_error(c, err, "WSASend() failed"); | 62 ngx_connection_error(c, err, "WSASend() failed"); |