0

The timeout subject has been covered many times for HTTP, but I'm trying to test a HTTPS connection through a proxy.

urllib2, mechanize, httplib, requests are just some of the libraries that are reported to have issues with HTTPS timeouts.

I've also tried the popular: socket.setdefaulttimeout(3) and it still hung without timing out.

Does anyone have a method to test an HTTPS proxy on a HTTPS website with timeout working?

Thanks so much.

User
  • 23,729
  • 38
  • 124
  • 207

1 Answers1

1

Run your request in dedicate thread or process and check request result periodically. Similar to https://stackoverflow.com/a/14924210/853876

Community
  • 1
  • 1
sorrat
  • 873
  • 6
  • 11
  • There surely must be another way? I can't believe there isn't a library for HTTPS requests through proxies with timeout support. – User Aug 15 '14 at 03:19