From: wessels <> Date: Sat, 17 Aug 1996 11:09:00 +0000 (+0000) Subject: drain redirect requests during shutdown X-Git-Tag: SQUID_3_0_PRE1~5961 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=900c07988e1918aac35990fe0f4b9c3397222eb5;p=thirdparty%2Fsquid.git drain redirect requests during shutdown --- diff --git a/src/redirect.cc b/src/redirect.cc index 6b6844d2b4..643525942f 100644 --- a/src/redirect.cc +++ b/src/redirect.cc @@ -1,5 +1,5 @@ /* - * $Id: redirect.cc,v 1.8 1996/08/14 21:38:29 wessels Exp $ + * $Id: redirect.cc,v 1.9 1996/08/17 05:09:00 wessels Exp $ * * DEBUG: section 29 Redirector * AUTHOR: Duane Wessels @@ -381,9 +381,15 @@ void redirectOpenServers() void redirectShutdownServers() { redirector_t *redirect = NULL; + redirectStateData *r = NULL; int k; if (Config.Program.redirect == NULL) return; + if (redirectQueueHead) { + while ((redirect = GetFirstAvailable()) && (r = Dequeue())) + redirectDispatch(redirect, r); + return; + } for (k = 0; k < NRedirectors; k++) { redirect = *(redirect_child_table + k); if (!(redirect->flags & REDIRECT_FLAG_ALIVE))