Very occasionally when making a http request, I am waiting for an age for a response that never comes.  What is the recommended way to cancel this request after a reasonable period of time?
Set the HTTP request timeout.
Timeout on a HTTP request in python