* Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
*/
-#include "config.h"
+#include "squid.h"
/* MS Visual Studio Projects are monolithic, so we need the following
* #if to exclude the delay pools code from compile process when not needed.
*/
-#if DELAY_POOLS
+#if USE_DELAY_POOLS
-#include "squid.h"
+#include "squid-old.h"
#include "DelayId.h"
#include "client_side_request.h"
#include "acl/FilledChecklist.h"
if (http->getConn() != NULL)
ch.conn(http->getConn());
- if (DelayPools::delay_data[pool].theComposite().getRaw() && ch.fastCheck()) {
+ if (DelayPools::delay_data[pool].theComposite().getRaw() && ch.fastCheck() == ACCESS_ALLOWED) {
DelayId result (pool + 1);
CompositePoolNode::CompositeSelectionDetails details;
details.src_addr = ch.src_addr;
+#if USE_AUTH
details.user = r->auth_user_request;
+#endif
details.tag = r->tag;
result.compositePosition(DelayPools::delay_data[pool].theComposite()->id(details));
return result;
}
-#endif /* DELAY_POOLS */
+#endif /* USE_DELAY_POOLS */