Set timeout of 3 minutes for the socket.