HttpTunneler.h
Go to the documentation of this file.
39 Tunneler(const Comm::ConnectionPointer &, const HttpRequestPointer &, const AsyncCallback<Answer> &, time_t timeout, const AccessLogEntryPointer &);
void error(char *format,...)
Definition: AccessLogEntry.h:41
a smart AsyncCall pointer for delivery of future results
Definition: AsyncCallbacks.h:32
Definition: AsyncJob.h:32
Definition: CommCalls.h:128
Definition: CommCalls.h:114
Definition: CommCalls.h:134
Definition: DelayId.h:22
Definition: errorpage.h:89
Definition: HttpReply.h:25
Definition: HttpTunnelerAnswer.h:30
Definition: HttpTunneler.h:33
void bailOnResponseError(const char *error, HttpReply *)
Definition: HttpTunneler.cc:336
CBDATA_CHILD(Tunneler)
Tunneler(const Tunneler &)=delete
void handleResponse(const bool eof)
Parses [possibly incomplete] CONNECT response and reacts to it.
Definition: HttpTunneler.cc:274
void callBack()
a bailWith(), sendSuccess() helper: sends results to the initiator
Definition: HttpTunneler.cc:409
const char * status() const override
internal cleanup; do not call directly
Definition: HttpTunneler.cc:433
void handleConnectionClosure(const CommCloseCbParams &)
Definition: HttpTunneler.cc:89
void handleWrittenRequest(const CommIoCbParams &)
Called when we are done writing a CONNECT request header to a peer.
Definition: HttpTunneler.cc:176
void watchForClosures()
make sure we quit if/when the connection is gone
Definition: HttpTunneler.cc:102
Tunneler(const Comm::ConnectionPointer &, const HttpRequestPointer &, const AsyncCallback< Answer > &, time_t timeout, const AccessLogEntryPointer &)
Definition: HttpTunneler.cc:29
bool noteFwdPconnUse
hack: whether the connection requires fwdPconnPool->noteUses()
Definition: HttpTunneler.h:48
void handleTimeout(const CommTimeoutCbParams &)
The connection read timeout callback handler.
Definition: HttpTunneler.cc:117
Tunneler & operator=(const Tunneler &)=delete
void handleReadyRead(const CommIoCbParams &)
Called when we read [a part of] CONNECT response from the peer.
Definition: HttpTunneler.cc:201
Http1::ResponseParserPointer hp
Parser being used at present to parse the HTTP peer response.
Definition: HttpTunneler.h:101
void countFailingConnection(const ErrorState *)
updates connection usage history before the connection is closed
Definition: HttpTunneler.cc:377
Definition: forward.h:18