Welcome! Log In Create A New Profile

Advanced

Contributing Changes

张成龙
December 29, 2020 04:32AM
# HG changeset patch
# User Chenglong Zhang <dongbeiouba@gmail.com>
# Date 1609232548 -28800
# Tue Dec 29 17:02:28 2020 +0800
# Node ID 65bb4c9c296d2c424286e2b36db96a4ba768369e
# Parent 82228f955153527fba12211f52bf102c90f38dfb
Clear connection pointer just after close it.

ngx_close_connection(u->peer.connection);
u->peer.connection = NULL;

diff -r 82228f955153 -r 65bb4c9c296d src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c Tue Dec 15 17:41:39 2020 +0300
+++ b/src/http/ngx_http_upstream.c Tue Dec 29 17:02:28 2020 +0800
@@ -4402,9 +4402,8 @@
}

ngx_close_connection(u->peer.connection);
- }
-
- u->peer.connection = NULL;
+ u->peer.connection = NULL;
+ }

if (u->pipe && u->pipe->temp_file) {
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Contributing Changes

张成龙 66 December 29, 2020 04:32AM



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

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready