nickesk / pyactiveresource

Automatically exported from code.google.com/p/pyactiveresource
Other
0 stars 0 forks source link

socket.setdefaulttimeout affects all tcp connections #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. its a system wide configuration.

What is the expected output? What do you see instead?
expect to have threaded timeout or either class/object level timeout that
can be controlled within the execution context. Currently timeout is set
across all tcp connections. 

What version of the product are you using? On what operating system?
linux

Please provide any additional information below.

Original issue reported on code.google.com by i3dmas...@gmail.com on 28 Aug 2008 at 10:41

GoogleCodeExporter commented 9 years ago
There are a couple things to be done here. Python 2.6's urllib2 allows 
per-request
timeout specification. I believe Jim also has a module that will do this for 
python
2.4/5 It would be good to check which version of python is running and use the
appropriate solution.

Original comment by mark.r.r...@gmail.com on 25 Sep 2008 at 5:21

GoogleCodeExporter commented 9 years ago
Per-connection timeouts were added sometime last year.

Original comment by mark.r.r...@gmail.com on 19 Apr 2012 at 3:11