]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix IOStream.write() to never orphan Future 1987/head
authorAntoine Pitrou <antoine@python.org>
Mon, 14 Nov 2016 18:38:25 +0000 (19:38 +0100)
committerBen Darnell <ben@bendarnell.com>
Sun, 26 Mar 2017 16:25:19 +0000 (12:25 -0400)
commit7c40bedd82e804c3e25c051bf3b3bd2526909e49
tree9ce2dd65d8874a38ab33ad670649e0f153802583
parentdf31744f765e8dbd63f219c8aa827bb5a61e20d8
Fix IOStream.write() to never orphan Future

The current behaviour is error-prone and makes it difficult to use the
Future-returning variant of IOStream.write().  This change makes sure
the returned Future is triggered as soon as the corresponding write
is issued.
tornado/iostream.py
tornado/test/iostream_test.py