public Socket createSocket(String host, int port, InetAddress localAddress, int localPort,
HttpConnectionParams params)
throws IOException, UnknownHostException, ConnectTimeoutException {
int timeout = params.getConnectionTimeout();
if (timeout == 0) {
return new SlowSocket(CPS,host,port,localAddress,localPort);
} else {
return new SlowSocket(CPS,host,port,localAddress,localPort, timeout);
}
}