![](tunnel_8h__incl.png)
![](tunnel_8h__dep__incl.png)
Go to the source code of this file.
Functions | |
void | switchToTunnel (HttpRequest *request, const Comm::ConnectionPointer &clientConn, const Comm::ConnectionPointer &srvConn, const SBuf &preReadServerData) |
Function Documentation
◆ switchToTunnel()
void switchToTunnel | ( | HttpRequest * | request, |
const Comm::ConnectionPointer & | clientConn, | ||
const Comm::ConnectionPointer & | srvConn, | ||
const SBuf & | preReadServerData | ||
) |
Sets up a TCP tunnel through Squid and starts shoveling traffic.
- Parameters
-
request the request that initiated/caused this tunnel clientConn the already accepted client-to-Squid TCP connection srvConn the already established Squid-to-server TCP connection preReadServerData server-sent bytes to be forwarded to the client
Definition at line 1540 of file tunnel.cc.
References StatCounters::all, HttpRequest::clientConnectionManager, TunnelStateData::commitToServer(), debugs, DelayId::DelayClient(), Comm::Connection::fd, CbcPointer< Cbc >::get(), TunnelStateData::getHost(), Comm::Connection::getPeer(), HttpRequest::hier, CachePeer::host, Http::Message::http_ver, Comm::IsConnOpen(), HttpRequest::method, Must, CachePeer::no_delay, CachePeer::options, StatCounters::other, HttpRequest::peer_host, HttpRequest::prepForDirect(), HttpRequest::prepForPeering(), TunnelStateData::preReadServerData, TunnelStateData::request, HierarchyLogEntry::resetPeerNotes(), StatCounters::server, TunnelStateData::server, TunnelStateData::Connection::setDelayId(), statCounter, tunnelStartShoveling(), and TunnelStateData::TunnelStateData().
Referenced by Http::One::Server::noteTakeServerConnectionControl(), and Ssl::PeekingPeerConnector::startTunneling().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products