From 872163128701671c4ea27196e64c3c65b4d26591 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 10 Jan 2014 00:59:14 +0900 Subject: [PATCH] nghttp: Fix port checking to share connection --- src/nghttp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nghttp.cc b/src/nghttp.cc index da8d6258..0ae768c5 100644 --- a/src/nghttp.cc +++ b/src/nghttp.cc @@ -1562,7 +1562,7 @@ int run(char **uris, int n) u.port : get_default_port(uri.c_str(), u); if(!fieldeq(uri.c_str(), u, UF_SCHEMA, prev_scheme.c_str()) || !fieldeq(uri.c_str(), u, UF_HOST, prev_host.c_str()) || - u.port != prev_port) { + port != prev_port) { if(!requests.empty()) { if (communicate(prev_scheme, prev_host, prev_port, std::move(requests), &callbacks) != 0) {