Welcome! Log In Create A New Profile

Advanced

[nginx] Used the correct type for the AIO preload handler return...

Valentin Bartenev
April 06, 2015 04:26AM
details: http://hg.nginx.org/nginx/rev/657f6ec01da0
branches:
changeset: 6066:657f6ec01da0
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Apr 06 11:22:24 2015 +0300
description:
Used the correct type for the AIO preload handler return value.

diffstat:

src/os/unix/ngx_freebsd_sendfile_chain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 0daea93e86a2 -r 657f6ec01da0 src/os/unix/ngx_freebsd_sendfile_chain.c
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c Fri Apr 03 18:20:57 2015 +0300
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c Mon Apr 06 11:22:24 2015 +0300
@@ -266,9 +266,9 @@ ngx_freebsd_sendfile_chain(ngx_connectio
c->busy_count = 0;
}

- rc = aio->preload_handler(file);
+ n = aio->preload_handler(file);

- if (rc > 0) {
+ if (n > 0) {
send = prev_send + sent;
continue;
}

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

[nginx] Used the correct type for the AIO preload handler return...

Valentin Bartenev 475 April 06, 2015 04:26AM



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

Online Users

Guests: 293
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