return;
}
#endif
- logType = LOG_TCP_MISS;
getConn()->stopReading(); // tunnels read for themselves
tunnelStart(this, &out.size, &al->http.code, al);
return;
#include "HttpRequest.h"
#include "HttpStateFlags.h"
#include "ip/QosConfig.h"
+#include "LogTags.h"
#include "MemBuf.h"
#include "PeerSelectState.h"
#include "SquidConfig.h"
};
Connection client, server;
- int *status_ptr; /* pointer to status for logging */
+ int *status_ptr; ///< pointer for logging HTTP status
+ LogTags *logTag_ptr; ///< pointer for logging Squid processing code
MemBuf *connectRespBuf; ///< accumulates peer CONNECT response when we need it
bool connectReqWriting; ///< whether we are writing a CONNECT request to a peer
{
assert(!tunnelState->waitingForConnectExchange());
*tunnelState->status_ptr = Http::scOkay;
+ *tunnelState->logTag_ptr = LOG_TCP_TUNNEL;
if (cbdataReferenceValid(tunnelState)) {
// Shovel any payload already pushed into reply buffer by the server response
tunnelState->request = request;
tunnelState->server.size_ptr = size_ptr;
tunnelState->status_ptr = status_ptr;
+ tunnelState->logTag_ptr = &http->logType;
tunnelState->client.conn = http->getConn()->clientConnection;
tunnelState->http = http;
tunnelState->al = al;