From cac489176c70753602523d4a0a2b3edd8f2eed34 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 13 Oct 2008 17:31:03 +0000 Subject: [PATCH] If a remembered connection is no longer usable and has been marked closed, don't bother checking if the destination matches. --- gateway.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gateway.c b/gateway.c index e43bcbda..bcf0df54 100644 --- a/gateway.c +++ b/gateway.c @@ -1,4 +1,4 @@ -const char gateway_rcs[] = "$Id: gateway.c,v 1.28 2008/10/09 18:21:41 fabiankeil Exp $"; +const char gateway_rcs[] = "$Id: gateway.c,v 1.29 2008/10/11 16:59:41 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/gateway.c,v $ @@ -34,6 +34,9 @@ const char gateway_rcs[] = "$Id: gateway.c,v 1.28 2008/10/09 18:21:41 fabiankeil * * Revisions : * $Log: gateway.c,v $ + * Revision 1.29 2008/10/11 16:59:41 fabiankeil + * Add missing dots for two log messages. + * * Revision 1.28 2008/10/09 18:21:41 fabiankeil * Flush work-in-progress changes to keep outgoing connections * alive where possible. Incomplete and mostly #ifdef'd out. @@ -611,6 +614,7 @@ static jb_socket get_reusable_connection(const struct http_request *http, reusable_connection[slot].sfd, reusable_connection[slot].host, reusable_connection[slot].port, slot); mark_connection_closed(&reusable_connection[slot]); + continue; } } else @@ -621,7 +625,6 @@ static jb_socket get_reusable_connection(const struct http_request *http, reusable_connection[slot].port, slot); } - if (connection_destination_matches(&reusable_connection[slot], http, fwd)) { reusable_connection[slot].in_use = TRUE; -- 2.39.2