virtual bool hasRequest() const = 0;
virtual bool hasReply() const = 0;
-protected:
- virtual void checkCallback(allow_t answer);
private:
+ /// Calls non-blocking check callback with the answer and destroys self.
+ void checkCallback(allow_t answer);
+
void checkAccessList();
void checkForAsync();
CBDATA_CLASS_INIT(ACLFilledChecklist);
-void
-ACLFilledChecklist::checkCallback(allow_t answer)
-{
- debugs(28, 5, HERE << this << " answer=" << answer);
-
-#if USE_AUTH
- /* During reconfigure, we can end up not finishing call
- * sequences into the auth code */
-
- if (auth_user_request != NULL) {
- /* the filled_checklist lock */
- auth_user_request = NULL;
- // It might have been connection based
- // In the case of sslBump we need to preserve authentication info
- // XXX: need to re-evaluate this. ACL tests should not be playing with
- // XXX: wider scoped TCP connection state, even if the helper lookup is stuck.
- if (conn() && !conn()->switchedToHttps()) {
- conn()->auth_user_request = NULL;
- }
- }
-#endif
-
- ACLChecklist::checkCallback(answer); // may delete us
-}
-
void *
ACLFilledChecklist::operator new (size_t size)