/*
- * $Id: external_acl.cc,v 1.36 2003/05/06 00:13:39 hno Exp $
+ * $Id: external_acl.cc,v 1.37 2003/05/06 00:20:03 hno Exp $
*
* DEBUG: section 82 External ACL
* AUTHOR: Henrik Nordstrom, MARA Systems AB
if (!entry || entry->result == -1) {
debug(82, 2) ("aclMatchExternal: %s(\"%s\") = lookup needed\n", acl->def->name, key);
- ch->changeState (ExternalACLLookup::Instance());
+
+ if (acl->def->helper->stats.queue_size >= acl->def->helper->n_running)
+ debug(82, 1) ("aclMatchExternal: '%s' queue overload. Request rejected.\n", acl->def->name);
+ else
+ ch->changeState (ExternalACLLookup::Instance());
+
return 0;
}
/*
- * $Id: main.cc,v 1.377 2003/04/27 00:29:07 hno Exp $
+ * $Id: main.cc,v 1.378 2003/05/06 00:17:06 hno Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
#endif
serverConnectionsClose();
-#if USE_DNSSERVERS
-
- dnsShutdown();
-#else
-
- idnsShutdown();
-#endif
-
- redirectShutdown();
- externalAclShutdown();
eventAdd("SquidShutdown", SquidShutdown, NULL, (double) (wait + 1), 1);
}
#endif
debug(1, 1) ("Shutting down...\n");
+#if USE_DNSSERVERS
+
+ dnsShutdown();
+#else
+
+ idnsShutdown();
+#endif
+
+ redirectShutdown();
+ externalAclShutdown();
icpConnectionClose();
#if USE_HTCP