A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-April/023287.html below:

[Python-Dev] timeoutsocket.py

[Python-Dev] timeoutsocket.py [Python-Dev] timeoutsocket.pySkip Montanaro skip@pobox.com
Mon, 15 Apr 2002 14:29:35 -0500
    >> What is the status of integrating timeoutsocket.py into standard
    >> library?  Are there any body responsible for it currently?  If not I
    >> would like to give it a shot.

    Guido> Isn't one of the problems that the timeout is global?

That's the easiest way to use it, but you can specify timeouts on a
per-socket basis.  From the module docstring:

    import timeoutsocket
    import httplib
    H = httplib.HTTP("www.python.org")
    H.sock.set_timeout(30)

The author, Tim O'Malley, is probably the best person to address issues with
this package, so I've added him to the cc list in case he's not a python-dev
subscriber.

Skip




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