]> granicus.if.org Git - python/commit
asyncio: sync with Tulip
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 29 Jan 2015 01:56:05 +0000 (02:56 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 29 Jan 2015 01:56:05 +0000 (02:56 +0100)
commit47bbea712415e79ee224d21e518470ec70477d41
tree93434368046d4a68f30404adfb29b100cb1d6298
parent7b5a900e88a046b01eebafdc98ee23d531c101d3
asyncio: sync with Tulip

* _SelectorTransport constructor: extra parameter is now optional
* Fix _SelectorDatagramTransport constructor. Only start reading after
  connection_made() has been called.
* Fix _SelectorSslTransport.close(). Don't call protocol.connection_lost() if
  protocol.connection_made() was not called yet: if the SSL handshake failed or
  is still in progress. The close() method can be called if the creation of the
  connection is cancelled, by a timeout for example.
Lib/asyncio/selector_events.py
Lib/test/test_asyncio/test_selector_events.py