mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
style fix
This commit is contained in:
parent
a70d086812
commit
ff95d9290c
@ -87,7 +87,9 @@ ngx_udp_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (WSAGetOverlappedResult(c->fd, (LPWSAOVERLAPPED) &rev->ovlp,
|
if (WSAGetOverlappedResult(c->fd, (LPWSAOVERLAPPED) &rev->ovlp,
|
||||||
&bytes, 0, NULL) == 0) {
|
&bytes, 0, NULL)
|
||||||
|
== 0)
|
||||||
|
{
|
||||||
ngx_connection_error(c, ngx_socket_errno,
|
ngx_connection_error(c, ngx_socket_errno,
|
||||||
"WSARecv() or WSAGetOverlappedResult() failed");
|
"WSARecv() or WSAGetOverlappedResult() failed");
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
|
@ -100,7 +100,9 @@ ngx_overlapped_wsarecv(ngx_connection_t *c, u_char *buf, size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (WSAGetOverlappedResult(c->fd, (LPWSAOVERLAPPED) &rev->ovlp,
|
if (WSAGetOverlappedResult(c->fd, (LPWSAOVERLAPPED) &rev->ovlp,
|
||||||
&bytes, 0, NULL) == 0) {
|
&bytes, 0, NULL)
|
||||||
|
== 0)
|
||||||
|
{
|
||||||
ngx_connection_error(c, ngx_socket_errno,
|
ngx_connection_error(c, ngx_socket_errno,
|
||||||
"WSARecv() or WSAGetOverlappedResult() failed");
|
"WSARecv() or WSAGetOverlappedResult() failed");
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
|
@ -291,7 +291,9 @@ ngx_overlapped_wsasend_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (WSAGetOverlappedResult(c->fd, (LPWSAOVERLAPPED) &wev->ovlp,
|
if (WSAGetOverlappedResult(c->fd, (LPWSAOVERLAPPED) &wev->ovlp,
|
||||||
&sent, 0, NULL) == 0) {
|
&sent, 0, NULL)
|
||||||
|
== 0)
|
||||||
|
{
|
||||||
ngx_connection_error(c, ngx_socket_errno,
|
ngx_connection_error(c, ngx_socket_errno,
|
||||||
"WSASend() or WSAGetOverlappedResult() failed");
|
"WSASend() or WSAGetOverlappedResult() failed");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user