Set http connection time out to prevent request to wait and not response.