Mercurial > hg > nginx
comparison src/os/unix/ngx_recv.c @ 257:70e1c7d2b83d
nginx-0.0.2-2004-02-11-20:08:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Feb 2004 17:08:49 +0000 |
parents | 8e39cab6abd5 |
children | 87e73f067470 |
comparison
equal
deleted
inserted
replaced
256:8e39cab6abd5 | 257:70e1c7d2b83d |
---|---|
88 } | 88 } |
89 | 89 |
90 err = ngx_socket_errno; | 90 err = ngx_socket_errno; |
91 | 91 |
92 if (err == NGX_EAGAIN || err == NGX_EINTR) { | 92 if (err == NGX_EAGAIN || err == NGX_EINTR) { |
93 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, rev->log, err, | 93 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, |
94 "recv() not ready"); | 94 "recv() not ready"); |
95 n = NGX_AGAIN; | 95 n = NGX_AGAIN; |
96 | 96 |
97 } else { | 97 } else { |
98 n = ngx_connection_error(c, err, "recv() failed"); | 98 n = ngx_connection_error(c, err, "recv() failed"); |
139 } | 139 } |
140 | 140 |
141 err = ngx_socket_errno; | 141 err = ngx_socket_errno; |
142 | 142 |
143 if (err == NGX_EAGAIN || err == NGX_EINTR) { | 143 if (err == NGX_EAGAIN || err == NGX_EINTR) { |
144 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, rev->log, err, | 144 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, err, |
145 "recv() not ready"); | 145 "recv() not ready"); |
146 n = NGX_AGAIN; | 146 n = NGX_AGAIN; |
147 | 147 |
148 } else { | 148 } else { |
149 n = ngx_connection_error(c, err, "recv() failed"); | 149 n = ngx_connection_error(c, err, "recv() failed"); |