Search in sources :

Example 6 with HostConnections

use of org.apache.synapse.transport.passthru.connections.HostConnections in project wso2-synapse by wso2.

the class ConnectCallback method completed.

public void completed(SessionRequest request) {
    HostConnections pool = (HostConnections) request.getAttachment();
    pool.pendingConnectionSucceeded();
    if (log.isDebugEnabled()) {
        if (request.getSession() != null && request.getSession().getLocalAddress() != null) {
            log.debug("Connected to remote address: " + request.getSession().getRemoteAddress() + " from local address: " + request.getSession().getLocalAddress());
        }
    }
}
Also used : HostConnections(org.apache.synapse.transport.passthru.connections.HostConnections)

Aggregations

HostConnections (org.apache.synapse.transport.passthru.connections.HostConnections)6 HttpRoute (org.apache.http.conn.routing.HttpRoute)2 HttpContext (org.apache.http.protocol.HttpContext)1 ProxyTunnelHandler (org.apache.synapse.transport.http.conn.ProxyTunnelHandler)1