]> granicus.if.org Git - python/commit
Cleanup properly proactor event loop
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 10 Jan 2014 23:03:21 +0000 (00:03 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 10 Jan 2014 23:03:21 +0000 (00:03 +0100)
commit7de2646cdf70fda17fffd369fa7c1784afc1ab00
tree8f733cd0aa7c401122759941c526dadd7bb8bbf7
parentc8935fe8608b5227ccbc944846d2d0468ab3865f
Cleanup properly proactor event loop

* store the "self reading" future when the "self pipe" is closed (when the
  event loop is closed)
* store "accept" futures to cancel them when we stop serving
* close the "accept socket" if the "accept future" is cancelled

Fix many warnings which can be seen when unit tests are run in verbose mode.
Lib/asyncio/proactor_events.py
Lib/asyncio/windows_events.py