Set the socket timeout duration in milliseconds.