Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_proxy_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 | 13a5202b6b4b |
children | fd84344f1df7 |
comparison
equal
deleted
inserted
replaced
4965:58dfef910ccd | 4966:c821975c9068 |
---|