errno bug in ngx_unix_recv().

jiakai1000 at jiakai1000 at
Thu Apr 9 02:25:45 UTC 2015

in function:
ssize_t ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size)
 err = ngx_socket_errno; 
should before
 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, c->log, 0,"recv: fd:%d %d of %d", c->fd, n, size);
because ngx_log_debug3 may change errno, for example change errno from EAGAIN to EPIPE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list