adding default timeout for socket. That stops connections to hang forever

Just a default timeout for sockets in use...
No socket connect should take longer than 10 seconds.