The official NGINX Open Source repository.
Go to file
Maxim Dounin 0f5f4cb180 Fix for socket leak with "aio sendfile" and "limit_rate".
Second aio post happened when timer set by limit_rate expired while we have
aio request in flight, resulting in "second aio post" alert and socket leak.

The patch adds actual protection from aio calls with r->aio already set to
aio sendfile code in ngx_http_copy_filter().  This should fix other cases
as well, e.g. when sending buffered to disk upstream replies while still
talking to upstream.

The ngx_http_writer() is also fixed to handle the above case (though it's
mostly optimization now).

Reported by Oleksandr V. Typlyns'kyi.
2011-10-11 18:00:23 +00:00
auto Upstream keepalive module. 2011-09-15 19:28:18 +00:00
conf "video/mp4" mime type added. 2011-09-09 10:25:43 +00:00
contrib nginx-0.3.55-RELEASE import 2006-07-28 15:16:17 +00:00
docs The reference documentation is moving elsewhere. 2011-10-09 06:49:54 +00:00
misc Adding repository path missed in r4179. 2011-10-06 13:09:00 +00:00
src Fix for socket leak with "aio sendfile" and "limit_rate". 2011-10-11 18:00:23 +00:00
.hgtags release-1.1.5 tag 2011-10-05 14:46:09 +00:00