diff src/http/ngx_http_upstream.c @ 4415:30eff7580d0c

Fixed AIO error handling on FreeBSD. The aio_return() must be called regardless of the error returned by aio_error(). Not calling it resulted in various problems up to segmentation faults (as AIO events are level-triggered and were reported again and again). Additionally, in "aio sendfile" case r->blocked was incremented in case of error returned from ngx_file_aio_read(), thus causing request hangs.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 Jan 2012 07:39:47 +0000
parents d620f497c50f
children 6299d1c4dbb4
line wrap: on
line diff