A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-December/050423.html below:

[Python-Dev] httplib timeout patch

[Python-Dev] httplib timeout patchZhangYue张岳 zhangyue99 at tsinghua.org.cn
Tue Dec 14 04:09:58 CET 2004
Hi,

Here is a patch for httplib. I added a timeout value for 
httplib.HTTPConnection, please check.

(diff - CVS 1.94)

Zhang Yue
2004-12-14
-------------- next part --------------
Index: httplib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/httplib.py,v
retrieving revision 1.94
diff -r1.94 httplib.py
575c575
<     def __init__(self, host, port=None, strict=None):
---
>     def __init__(self, host, port=None, strict=None, timeout=None):
580a581
>         self.timeout = timeout
613a615,616
>                 if self.timeout:
>                     self.sock.settimeout(self.timeout)

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4