assertNotOpen();
if (this.targethost == null) {
throw new IllegalStateException("Target host not specified");
}
SocketFactory socketfactory = this.targethost.getScheme().getSocketFactory();
Socket socket = socketfactory.createSocket(
this.targethost.getHostName(), this.targethost.getPort(),
this.localAddress, 0,
params);
bind(socket, params);
this.maxHeaderCount = params.getIntParameter(HttpConnectionParams.MAX_HEADER_COUNT, -1);