jur9526 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Timeout setting on socket before connection #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Just now Session class accepts socket timeout at constructor parameters but 
then never uses it.

Python 2.6 and newer have support of timeout in httplib's 
HTTPConnection/HTTPSConnection but earlier versions don't.

I've write the patch that handles this case and adds support for timeout on all 
version (I hope). And refactor Session class to use it.

I've tested it on 2.5 and 2.6.

Patch is attached.

Original issue reported on code.google.com by daevaorn on 21 Jan 2011 at 5:15

Attachments:

GoogleCodeExporter commented 9 years ago
Up!

Original comment by daevaorn on 13 Mar 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Issue 177 has been merged into this issue.

Original comment by matt.goo...@gmail.com on 13 Apr 2011 at 1:24

GoogleCodeExporter commented 9 years ago
Fixed in commit f77735c82923. I simplified the attached patch quite a lot but 
the TimeoutMixin is basically the same. Thanks!

Original comment by matt.goo...@gmail.com on 13 Apr 2011 at 9:32