Removed useless code, Decreased TcpSocket connect timeout to 1 second