From 0d1a88c427b542de2cf016cdac8482572ff85427 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 13 Jul 2009 17:05:36 +0000 Subject: [PATCH] If the socket isn't reusable, don't bother remembering the connection. --- jcc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jcc.c b/jcc.c index ea6f99d5..b8505698 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.266 2009/07/11 14:39:34 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.267 2009/07/11 14:49:09 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -2393,7 +2393,8 @@ static void serve(struct client_state *csp) { log_error(LOG_LEVEL_CONNECT, "No additional client request received in time."); - if ((csp->config->feature_flags & RUNTIME_FEATURE_CONNECTION_SHARING)) + if ((csp->config->feature_flags & RUNTIME_FEATURE_CONNECTION_SHARING) + && (socket_is_still_usable(csp->sfd))) { remember_connection(csp, forward_url(csp, csp->http)); csp->sfd = JB_INVALID_SOCKET; -- 2.39.2