set timeout for connection socket