Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_index_module.c @ 4966:c821975c9068
Fixed handling of ngx_write_fd() and ngx_read_fd() errors.
The ngx_write_fd() and ngx_read_fd() functions return -1 in case of error,
so the incorrect comparison with NGX_FILE_ERROR (which is 0 on windows
platforms) might result in inaccurate error message in the error log.
Also the ngx_errno global variable is being set only if the returned value
is -1.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 14 Dec 2012 15:24:24 +0000 |
parents | 778ef9c3fd2d |
children | 3d50d86f3572 |