client_side.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9/* DEBUG: section 33 Client-side Routines */
10
11#ifndef SQUID_CLIENTSIDE_H
12#define SQUID_CLIENTSIDE_H
13
14#include "acl/ChecklistFiller.h"
16#include "clientStreamForward.h"
17#include "comm.h"
18#include "error/Error.h"
19#include "helper/forward.h"
20#include "http/forward.h"
21#include "HttpControlMsg.h"
22#include "ipc/FdNotes.h"
23#include "log/forward.h"
24#include "proxyp/forward.h"
25#include "sbuf/SBuf.h"
26#include "servers/Server.h"
27#if USE_AUTH
28#include "auth/UserRequest.h"
29#endif
30#include "security/KeyLogger.h"
31#if USE_OPENSSL
32#include "security/forward.h"
33#include "security/Handshake.h"
34#include "ssl/support.h"
35#endif
36#if USE_DELAY_POOLS
37#include "MessageBucket.h"
38#endif
39
40#include <iosfwd>
41
44
45class MasterXaction;
47
48#if USE_OPENSSL
49namespace Ssl
50{
51class ServerBump;
52}
53#endif
54
80 public Server,
81 public HttpControlMsgSink,
83 private IndependentRunner
84{
85
86public:
87 explicit ConnStateData(const MasterXactionPointer &xact);
88 ~ConnStateData() override;
89
90 /* ::Server API */
91 void receivedFirstByte() override;
92 bool handleReadData() override;
93 void afterClientRead() override;
94 void afterClientWrite(size_t) override;
95
96 /* HttpControlMsgSink API */
97 void sendControlMsg(HttpControlMsg) override;
98 void doneWithControlMsg() override;
99
101 void readNextRequest();
102
104 void kick();
105
106 bool isOpen() const;
107
109
116 int64_t mayNeedToReadMoreBody() const;
117
118#if USE_AUTH
123 const Auth::UserRequest::Pointer &getAuth() const { return auth_; }
124
133 void setAuth(const Auth::UserRequest::Pointer &aur, const char *cause);
134#endif
135
137
138 struct {
139 bool readMore = true;
140 bool swanSang = false; // XXX: temporary flag to check proper cleanup
142 struct {
143 Comm::ConnectionPointer serverConnection; /* pinned server side connection */
144 char *host = nullptr;
146 bool pinned = false;
147 bool auth = false;
148 bool reading = false;
149 bool zeroReply = false;
150 bool peerAccessDenied = false;
151 CachePeer *peer = nullptr;
155
156 bool transparent() const;
157
159 const char *stoppedReceiving() const { return stoppedReceiving_; }
161 const char *stoppedSending() const { return stoppedSending_; }
163 void stopReceiving(const char *error);
165 void stopSending(const char *error);
166
168 void resetReadTimeout(time_t timeout);
170 void extendLifetime();
171
172 void expectNoForwarding();
173
174 /* BodyPipe API */
178
180
183 {
184 public:
186
189 };
190
195 void pinBusyConnection(const Comm::ConnectionPointer &pinServerConn, const HttpRequest::Pointer &request);
197 void unpinConnection(const bool andClose);
198
203 CachePeer *pinnedPeer() const {return pinning.peer;}
204 bool pinnedAuth() const {return pinning.auth;}
205
208
209 // pining related comm callbacks
210 virtual void clientPinnedConnectionClosed(const CommCloseCbParams &io);
211
214 public:
216
219
221
222 private:
223 friend std::ostream &operator <<(std::ostream &, const ServerConnectionContext &);
225 };
226
230
231 // comm callbacks
233 void connStateClosed(const CommCloseCbParams &io);
234 void requestTimeout(const CommTimeoutCbParams &params);
235 void lifetimeTimeout(const CommTimeoutCbParams &params);
236
237 // AsyncJob API
238 void start() override;
239 bool doneAll() const override { return BodyProducer::doneAll() && false;}
240 void swanSong() override;
241 void callException(const std::exception &) override;
242
245 void quitAfterError(HttpRequest *request); // meant to be private
246
249
253
255 void postHttpsAccept();
256
257#if USE_OPENSSL
259 void startPeekAndSplice();
260
264 void doPeekAndSpliceStep();
266 void httpsPeeked(PinnedIdleContext pic);
267
269 bool splice();
270
272 void getSslContextStart();
273
276
278 static void sslCrtdHandleReplyWrapper(void *data, const Helper::Reply &reply);
280 void sslCrtdHandleReply(const Helper::Reply &reply);
281
282 void switchToHttps(ClientHttpRequest *, Ssl::BumpMode bumpServerMode);
283 void parseTlsHandshake();
284 bool switchedToHttps() const { return switchedToHttps_; }
286 inline void setServerBump(Ssl::ServerBump *srvBump) {
287 if (!sslServerBump)
288 sslServerBump = srvBump;
289 else
290 assert(sslServerBump == srvBump);
291 }
292 const SBuf &sslCommonName() const {return sslCommonName_;}
293 void resetSslCommonName(const char *name) {sslCommonName_ = name;}
294 const SBuf &tlsClientSni() const { return tlsClientSni_; }
303
305
309#else
310 bool switchedToHttps() const { return false; }
311#endif
313
315 void add(const Http::StreamPointer &context);
316
319
322 virtual void handleReply(HttpReply *header, StoreIOBuffer receivedData) = 0;
323
325 void consumeInput(const size_t byteCount);
326
327 /* TODO: Make the methods below (at least) non-public when possible. */
328
330 Http::Stream *abortRequestParsing(const char *const errUri);
331
334 bool fakeAConnectRequest(const char *reason, const SBuf &payload);
335
337 bool initiateTunneledRequest(HttpRequest::Pointer const &cause, const char *reason, const SBuf &payload);
338
341 bool shouldPreserveClientData() const;
342
344 ClientHttpRequest *buildFakeRequest(SBuf &useHost, AnyP::KnownPort usePort, const SBuf &payload);
345
350
351 /* Registered Runner API */
352 void startShutdown() override;
353 void endingShutdown() override;
354
358 bool hasNotes() const { return bool(theNotes) && !theNotes->empty(); }
359
361
363 void updateError(const Error &);
364
366 void updateError(const err_type c, const ErrorDetailPointer &d) { updateError(Error(c, d)); }
367
368 /* Acl::ChecklistFiller API */
369 void fillChecklist(ACLFilledChecklist &) const override;
370
377
378 // Exposed to be accessible inside the ClientHttpRequest constructor.
379 // TODO: Remove. Make sure there is always a suitable ALE instead.
382
385
386protected:
388 void finishDechunkingRequest(bool withSuccess);
391
394
397#if USE_OPENSSL
402#endif
403
412
417
420
422 virtual int pipelinePrefetchMax() const;
423
425 virtual time_t idleTimeout() const = 0;
426
429 void whenClientIpKnown();
430
432
435
436 bool tunnelOnError(const err_type);
437
438private:
439 /* ::Server API */
440 void terminateAll(const Error &, const LogTagsErrors &) override;
441 bool shouldCloseOnEof() const override;
442
443 void checkLogging();
444
445 void parseRequests();
447 bool concurrentRequestQueueFilled() const;
448
449 void pinConnection(const Comm::ConnectionPointer &pinServerConn, const HttpRequest &request);
450
451 /* PROXY protocol functionality */
454 bool proxyProtocolError(const char *reason);
455
456#if USE_OPENSSL
459
462 void storeTlsContextToCache(const SBuf &cacheKey, Security::ContextPointer &ctx);
464#endif
465
468
471
472#if USE_AUTH
475#endif
476
477#if USE_OPENSSL
478 bool switchedToHttps_ = false;
479 bool parsingTlsHandshake = false;
482
483 // TODO: Replace tlsConnectHostOrIp and tlsConnectPort with CONNECT request AnyP::Uri
488
492
496#endif
497
499 const char *stoppedSending_ = nullptr;
501 const char *stoppedReceiving_ = nullptr;
506};
507
508const char *findTrailingHTTPVersion(const char *uriAndHTTPVersion, const char *end = nullptr);
509
510int varyEvaluateMatch(StoreEntry * entry, HttpRequest * req);
511
514
515void clientOpenListenSockets(void);
516void clientConnectionsClose(void);
517void httpRequestFree(void *);
518
521
523void clientPackRangeHdr(const HttpReplyPointer &, const HttpHdrRangeSpec *, String boundary, MemBuf *);
524
526void clientPackTermBound(String boundary, MemBuf *);
527
528/* misplaced declaratrions of Stream callbacks provided/used by client side */
534
538
539std::ostream &operator <<(std::ostream &os, const ConnStateData::PinnedIdleContext &pic);
540std::ostream &operator <<(std::ostream &, const ConnStateData::ServerConnectionContext &);
541
542#endif /* SQUID_CLIENTSIDE_H */
543
int size
Definition: ModDevPoll.cc:75
int conn
the current server connection FD
Definition: Transport.cc:26
void error(char *format,...)
#define assert(EX)
Definition: assert.h:17
an interface for those capable of configuring an ACLFilledChecklist object
virtual bool doneAll() const
whether positive goal has been reached
Definition: AsyncJob.cc:112
void leaveOrphanage()
resume relying on owner(s) to initiate an explicit connection closure
Definition: Connection.h:92
void enterOrphanage()
close the still-open connection when its last reference is gone
Definition: Connection.h:90
parameters for the async notePinnedConnectionBecameIdle() call
Definition: client_side.h:183
PinnedIdleContext(const Comm::ConnectionPointer &conn, const HttpRequest::Pointer &req)
Definition: client_side.h:185
Comm::ConnectionPointer connection
to-server connection to be pinned
Definition: client_side.h:187
HttpRequest::Pointer request
to-server request that initiated serverConnection
Definition: client_side.h:188
noteTakeServerConnectionControl() callback parameter
Definition: client_side.h:213
Comm::ConnectionPointer conn_
to-server connection
Definition: client_side.h:224
SBuf preReadServerBytes
post-101 bytes received from the server
Definition: client_side.h:220
Comm::ConnectionPointer connection()
gives to-server connection to the new owner
Definition: client_side.h:218
ServerConnectionContext(const Comm::ConnectionPointer &conn, const SBuf &post101Bytes)
Definition: client_side.h:215
friend std::ostream & operator<<(std::ostream &, const ServerConnectionContext &)
virtual int pipelinePrefetchMax() const
returning N allows a pipeline of 1+N requests (see pipeline_prefetch)
void postHttpsAccept()
the second part of old httpsAccept, waiting for future HttpsServer home
Ssl::ServerBump * serverBump()
Definition: client_side.h:285
void endingShutdown() override
bool auth
pinned for www authentication
Definition: client_side.h:147
bool fakeAConnectRequest(const char *reason, const SBuf &payload)
bool switchedToHttps() const
Definition: client_side.h:284
void readNextRequest()
Traffic parsing.
Definition: client_side.cc:881
virtual void noteTakeServerConnectionControl(ServerConnectionContext)
Definition: client_side.h:229
virtual void clientPinnedConnectionClosed(const CommCloseCbParams &io)
Our close handler called by Comm when the pinned connection is closed.
char * prepareTlsSwitchingURL(const Http1::RequestParserPointer &hp)
Security::KeyLogger keyLogger
managers logging of the being-accepted TLS connection secrets
Definition: client_side.h:384
void afterClientRead() override
processing to be done after a Comm::Read()
Ssl::ServerBump * sslServerBump
HTTPS server cert. fetching state for bump-ssl-server-first.
Definition: client_side.h:494
const ProxyProtocol::HeaderPointer & proxyProtocolHeader() const
Definition: client_side.h:360
Http::Stream * parseHttpRequest(const Http1::RequestParserPointer &)
virtual bool writeControlMsgAndCall(HttpReply *rep, AsyncCall::Pointer &call)=0
handle a control message received by context from a peer and call back
Comm::ConnectionPointer serverConnection
Definition: client_side.h:143
void switchToHttps(ClientHttpRequest *, Ssl::BumpMode bumpServerMode)
void startPinnedConnectionMonitoring()
const char * stoppedReceiving() const
true if we stopped receiving the request
Definition: client_side.h:159
void consumeInput(const size_t byteCount)
remove no longer needed leading bytes from the input buffer
void clientAfterReadingRequests()
ClientHttpRequest * buildFakeRequest(SBuf &useHost, AnyP::KnownPort usePort, const SBuf &payload)
build a fake http request
virtual void handleReply(HttpReply *header, StoreIOBuffer receivedData)=0
void setAuth(const Auth::UserRequest::Pointer &aur, const char *cause)
Definition: client_side.cc:518
virtual Http::Stream * parseOneRequest()=0
BodyPipe::Pointer bodyPipe
set when we are reading request body
Definition: client_side.h:431
const SBuf & tlsClientSni() const
Definition: client_side.h:294
void sendControlMsg(HttpControlMsg) override
called to send the 1xx message and notify the Source
void kick()
try to make progress on a transaction or read more I/O
Definition: client_side.cc:918
const Auth::UserRequest::Pointer & getAuth() const
Definition: client_side.h:123
void getSslContextStart()
Start to create dynamic Security::ContextPointer for host or uses static port SSL context.
void httpsPeeked(PinnedIdleContext pic)
called by FwdState when it is done bumping the server
bool initiateTunneledRequest(HttpRequest::Pointer const &cause, const char *reason, const SBuf &payload)
generates and sends to tunnel.cc a fake request with a given payload
void swanSong() override
Definition: client_side.cc:615
bool splice()
Splice a bumped client connection on peek-and-splice mode.
void start() override
called by AsyncStart; do not call directly
void parseRequests()
SBuf tlsClientSni_
TLS client delivered SNI value. Empty string if none has been received.
Definition: client_side.h:490
Error bareError
a problem that occurred without a request (e.g., while parsing headers)
Definition: client_side.h:381
bool handleReadData() override
void expectNoForwarding()
cleans up virgin request [body] forwarding state
Http::Stream * abortRequestParsing(const char *const errUri)
stop parsing the request and create context for relaying error info
void startShutdown() override
void sslCrtdHandleReply(const Helper::Reply &reply)
Process response from ssl_crtd.
err_type handleChunkedRequestBody()
parses available chunked encoded body bytes, checks size, returns errors
SBuf sslCommonName_
CN name for SSL certificate generation.
Definition: client_side.h:487
void resetSslCommonName(const char *name)
Definition: client_side.h:293
void afterClientWrite(size_t) override
processing to sync state after a Comm::Write()
void doneWithControlMsg() override
bool doneAll() const override
whether positive goal has been reached
Definition: client_side.h:239
void terminateAll(const Error &, const LogTagsErrors &) override
abort any pending transactions and prevent new ones (by closing)
void abortChunkedRequestBody(const err_type error)
quit on errors related to chunked request body handling
void pinConnection(const Comm::ConnectionPointer &pinServerConn, const HttpRequest &request)
Forward future client requests using the given server connection.
bool preservingClientData_
whether preservedClientData is valid and should be kept up to date
Definition: client_side.h:434
bool pinnedAuth() const
Definition: client_side.h:204
void callException(const std::exception &) override
called when the job throws during an async call
Definition: client_side.cc:639
static void sslCrtdHandleReplyWrapper(void *data, const Helper::Reply &reply)
Callback function. It is called when squid receive message from ssl_crtd.
void lifetimeTimeout(const CommTimeoutCbParams &params)
Ssl::CertSignAlgorithm signAlgorithm
The signing algorithm to use.
Definition: client_side.h:495
Security::ContextPointer getTlsContextFromCache(const SBuf &cacheKey, const Ssl::CertificateProperties &certProperties)
AnyP::Port tlsConnectPort
The TLS server port number as passed in the CONNECT request.
Definition: client_side.h:486
CachePeer * pinnedPeer() const
Definition: client_side.h:203
Auth::UserRequest::Pointer auth_
some user details that can be used to perform authentication on this connection
Definition: client_side.h:474
Comm::ConnectionPointer borrowPinnedConnection(HttpRequest *, const AccessLogEntryPointer &)
ConnStateData-specific part of BorrowPinnedConnection()
bool shouldPreserveClientData() const
void parseTlsHandshake()
void notePinnedConnectionBecameIdle(PinnedIdleContext pic)
Called when a pinned connection becomes available for forwarding the next request.
void stopPinnedConnectionMonitoring()
The caller assumes responsibility for connection closure detection.
void pinBusyConnection(const Comm::ConnectionPointer &pinServerConn, const HttpRequest::Pointer &request)
bool handleIdleClientPinnedTlsRead()
bool proxyProtocolError(const char *reason)
bool serveDelayedError(Http::Stream *)
const SBuf & sslCommonName() const
Definition: client_side.h:292
SBuf preservedClientData
Definition: client_side.h:349
struct ConnStateData::@37 pinning
const char * stoppedSending_
the reason why we no longer write the response or nil
Definition: client_side.h:499
void resetReadTimeout(time_t timeout)
(re)sets timeout for receiving more bytes from the client
Definition: client_side.cc:598
bool hasNotes() const
Definition: client_side.h:358
void quitAfterError(HttpRequest *request)
void updateError(const err_type c, const ErrorDetailPointer &d)
emplacement/convenience wrapper for updateError(const Error &)
Definition: client_side.h:366
SBuf tlsConnectHostOrIp
The TLS server host name appears in CONNECT request or the server ip address for the intercepted requ...
Definition: client_side.h:485
AsyncCall::Pointer readHandler
detects serverConnection closure
Definition: client_side.h:152
struct ConnStateData::@36 flags
~ConnStateData() override
Definition: client_side.cc:671
void receivedFirstByte() override
Update flags and timeout after the first byte received.
uint64_t parsedBumpedRequestCount
The number of parsed HTTP requests headers on a bumped client connection.
Definition: client_side.h:481
Security::IoResult acceptTls()
bool pinned
this connection was pinned
Definition: client_side.h:146
BodyPipe::Pointer expectRequestBody(int64_t size)
bool switchedToHttps_
Definition: client_side.h:478
bool isOpen() const
Definition: client_side.cc:664
void clientPinnedConnectionRead(const CommIoCbParams &io)
static Comm::ConnectionPointer BorrowPinnedConnection(HttpRequest *, const AccessLogEntryPointer &)
void stopReceiving(const char *error)
note request receiving error and close as soon as we write the response
Ip::Address log_addr
Definition: client_side.h:136
void checkLogging()
log the last (attempt at) transaction if nobody else did
void unpinConnection(const bool andClose)
Undo pinConnection() and, optionally, close the pinned connection.
void handleSslBumpHandshakeError(const Security::IoResult &)
process a problematic Security::Accept() result on the SslBump code path
void startDechunkingRequest()
initialize dechunking state
void startPeekAndSplice()
Initializes and starts a peek-and-splice negotiation with the SSL client.
Ssl::BumpMode sslBumpMode
ssl_bump decision (Ssl::bumpEnd if n/a).
Definition: client_side.h:304
bool concurrentRequestQueueFilled() const
bool readMore
needs comm_read (for this request or new requests)
Definition: client_side.h:139
ConnStateData(const MasterXactionPointer &xact)
void extendLifetime()
(re)sets client_lifetime timeout
Definition: client_side.cc:606
ProxyProtocol::HeaderPointer proxyProtocolHeader_
the parsed PROXY protocol header
Definition: client_side.h:470
CachePeer * peer
CachePeer the connection goes via.
Definition: client_side.h:151
bool shouldCloseOnEof() const override
whether to stop serving our client after reading EOF on its connection
void fillChecklist(ACLFilledChecklist &) const override
configure the given checklist (to reflect the current transaction state)
void requestTimeout(const CommTimeoutCbParams &params)
void whenClientIpKnown()
virtual void notePeerConnection(Comm::ConnectionPointer)
called just before a FwdState-dispatched job starts using connection
Definition: client_side.h:207
void noteMoreBodySpaceAvailable(BodyPipe::Pointer) override=0
virtual time_t idleTimeout() const =0
timeout to use when waiting for the next request
void clientReadFtpData(const CommIoCbParams &io)
void finishDechunkingRequest(bool withSuccess)
put parsed content into input buffer and clean up
virtual void processParsedRequest(Http::StreamPointer &)=0
start processing a freshly parsed request
void getSslContextDone(Security::ContextPointer &)
finish configuring the newly created SSL context"
bool transparent() const
bool parsingTlsHandshake
Definition: client_side.h:479
bool parseProxyProtocolHeader()
AnyP::Port port
destination port of the request that caused serverConnection
Definition: client_side.h:145
bool handleRequestBodyData()
void updateError(const Error &)
if necessary, stores new error information (if any)
Definition: client_side.cc:652
void doPeekAndSpliceStep()
const char * stoppedReceiving_
the reason why we no longer read the request or nil
Definition: client_side.h:501
bool needProxyProtocolHeader_
whether PROXY protocol header is still expected
Definition: client_side.h:467
void noteBodyConsumerAborted(BodyPipe::Pointer) override=0
bool tunnelOnError(const err_type)
initiate tunneling if possible or return false otherwise
void stopSending(const char *error)
note response sending error and close as soon as we read the request
Definition: client_side.cc:983
int64_t mayNeedToReadMoreBody() const
char * host
host name of pinned connection
Definition: client_side.h:144
Security::HandshakeParser tlsParser
Definition: client_side.h:308
void storeTlsContextToCache(const SBuf &cacheKey, Security::ContextPointer &ctx)
const char * stoppedSending() const
true if we stopped sending the response
Definition: client_side.h:161
SBuf sslBumpCertKey
Key to use to store/retrieve generated certificate.
Definition: client_side.h:491
bool zeroReply
server closed w/o response (ERR_ZERO_SIZE_OBJECT)
Definition: client_side.h:149
NotePairs::Pointer notes()
Http1::TeChunkedParser * bodyParser
parses HTTP/1.1 chunked request body
Definition: client_side.h:108
bool reading
we are monitoring for peer connection closure
Definition: client_side.h:148
void fillConnectionLevelDetails(ACLFilledChecklist &) const
AsyncCall::Pointer closeHandler
The close handler for pinned server side connection.
Definition: client_side.h:153
NotePairs::Pointer theNotes
Definition: client_side.h:505
void connStateClosed(const CommCloseCbParams &io)
Definition: client_side.cc:507
bool proxyProtocolValidateClient()
bool peerAccessDenied
cache_peer_access denied pinned connection reuse
Definition: client_side.h:150
void add(const Http::StreamPointer &context)
registers a newly created stream
void setServerBump(Ssl::ServerBump *srvBump)
Definition: client_side.h:286
void buildSslCertGenerationParams(Ssl::CertificateProperties &certProperties)
a transaction problem
Definition: Error.h:27
sends a single control message, notifying the Sink
bundles HTTP 1xx reply and the "successfully forwarded" callback
A RegisteredRunner with lifetime determined by forces outside the Registry.
Definition: MemBuf.h:24
bool empty() const
Definition: Notes.h:253
Definition: SBuf.h:94
Incremental TLS/SSL Handshake parser.
Definition: Handshake.h:61
a summary a TLS I/O operation outcome
Definition: Io.h:19
manages collecting and logging secrets of a TLS connection to tls_key_log
Definition: KeyLogger.h:24
Definition: Server.h:32
void CSD(clientStreamNode *, ClientHttpRequest *)
client stream detach
void CSR(clientStreamNode *, ClientHttpRequest *)
client stream read
void CSCB(clientStreamNode *, ClientHttpRequest *, HttpReply *, StoreIOBuffer)
client stream read callback
clientStream_status_t CSS(clientStreamNode *, ClientHttpRequest *)
void clientConnectionsClose(void)
CSD clientSocketDetach
Definition: client_side.h:533
void clientProcessRequestFinished(ConnStateData *, const HttpRequest::Pointer &)
const char * findTrailingHTTPVersion(const char *uriAndHTTPVersion, const char *end=nullptr)
void clientOpenListenSockets(void)
void httpRequestFree(void *)
Definition: client_side.cc:499
void clientPackRangeHdr(const HttpReplyPointer &, const HttpHdrRangeSpec *, String boundary, MemBuf *)
append a "part" HTTP header (as in a multi-part/range reply) to the buffer
Definition: client_side.cc:733
void clientStartListeningOn(AnyP::PortCfgPointer &port, const RefCount< CommCbFunPtrCallT< CommAcceptCbPtrFun > > &subCall, const Ipc::FdNoteId noteId)
accept requests to a given port and inform subCall about them
SQUIDCEXTERN CSR clientGetMoreData
Definition: client_side.h:529
RefCount< MasterXaction > MasterXactionPointer
Definition: client_side.h:46
CSCB clientSocketRecipient
Definition: client_side.h:532
void clientSetKeepaliveFlag(ClientHttpRequest *http)
decide whether to expect multiple requests on the corresponding connection
Definition: client_side.cc:698
std::ostream & operator<<(std::ostream &os, const ConnStateData::PinnedIdleContext &pic)
void clientPostHttpsAccept(ConnStateData *)
SQUIDCEXTERN CSS clientReplyStatus
Definition: client_side.h:530
void clientProcessRequest(ConnStateData *, const Http1::RequestParserPointer &, Http::Stream *)
SQUIDCEXTERN CSD clientReplyDetach
Definition: client_side.h:531
void clientPackTermBound(String boundary, MemBuf *)
put terminating boundary for multiparts to the buffer
Definition: client_side.cc:726
int varyEvaluateMatch(StoreEntry *entry, HttpRequest *req)
static int port
Definition: ldap_backend.cc:70
err_type
Definition: forward.h:14
BumpMode
Definition: support.h:126
@ bumpEnd
Definition: support.h:126
CertSignAlgorithm
Definition: gadgets.h:166
@ algSignTrusted
Definition: gadgets.h:166
std::optional< KnownPort > Port
validated/supported port number (if any)
Definition: UriScheme.h:26
uint16_t KnownPort
validated/supported port number; these values are never zero
Definition: UriScheme.h:23
@ Error
Definition: ResultCode.h:19
FdNoteId
We cannot send char* FD notes to other processes. Pass int IDs and convert.
Definition: FdNotes.h:20
std::shared_ptr< SSL_CTX > ContextPointer
Definition: Context.h:29
Definition: Xaction.cc:40
#define SQUIDCEXTERN
Definition: squid.h:21

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors