]> granicus.if.org Git - python/commit
asyncio: Synchronize with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 5 Mar 2014 23:52:53 +0000 (00:52 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 5 Mar 2014 23:52:53 +0000 (00:52 +0100)
commiteeeebcd816c9c4e42de80475aec67d3066985397
tree0f7bcb58ca0b2841d990216da9b6587d925351ca
parentc5cc5011ac33f96a8bf28e3ba088980fd5e71d7a
asyncio: Synchronize with Tulip

* Issue #159: Fix windows_utils.socketpair()

  - Use "127.0.0.1" (IPv4) or "::1" (IPv6) host instead of "localhost", because
    "localhost" may be a different IP address
  - Reject also invalid arguments: only AF_INET/AF_INET6 with SOCK_STREAM (and
    proto=0) are supported

* Reject add/remove reader/writer when event loop is closed.
* Fix ResourceWarning warnings
Lib/asyncio/selector_events.py
Lib/asyncio/windows_utils.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_windows_utils.py