Welcome! Log In Create A New Profile

Advanced

[nginx] Fixed AIO handling in the output chain.

Valentin Bartenev
February 02, 2015 09:24AM
details: http://hg.nginx.org/nginx/rev/bcdfc39bf44d
branches:
changeset: 5966:bcdfc39bf44d
user: Valentin Bartenev <vbart@nginx.com>
date: Wed Jan 28 21:33:06 2015 +0300
description:
Fixed AIO handling in the output chain.

The ctx->aio flag must be taken into account in the short path too.

diffstat:

src/core/ngx_output_chain.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 78271500b8de -r bcdfc39bf44d src/core/ngx_output_chain.c
--- a/src/core/ngx_output_chain.c Tue Jan 27 15:38:15 2015 +0300
+++ b/src/core/ngx_output_chain.c Wed Jan 28 21:33:06 2015 +0300
@@ -45,8 +45,12 @@ ngx_output_chain(ngx_output_chain_ctx_t
ngx_int_t rc, last;
ngx_chain_t *cl, *out, **last_out;

- if (ctx->in == NULL && ctx->busy == NULL) {
-
+ if (ctx->in == NULL && ctx->busy == NULL
+#if (NGX_HAVE_FILE_AIO)
+ && !ctx->aio
+#endif
+ )
+ {
/*
* the short path for the case when the ctx->in and ctx->busy chains
* are empty, the incoming chain is empty too or has the single buf

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Fixed AIO handling in the output chain.

Valentin Bartenev 591 February 02, 2015 09:24AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready