]> git.ipfire.org Git - thirdparty/tornado.git/commit
Delay IOStream close callback until all pending callbacks have been processed.
authorBen Darnell <ben@bendarnell.com>
Tue, 19 Jul 2011 06:52:27 +0000 (23:52 -0700)
committerBen Darnell <ben@bendarnell.com>
Tue, 19 Jul 2011 06:52:27 +0000 (23:52 -0700)
commite360c72a1617ef8fd2fe4ce7274a7611c49484cf
treeb85ac4b25c19d7f852b290f66c564c853f520483
parent6f9e2f61fa382dc3113a660b6bb323901e26fda9
Delay IOStream close callback until all pending callbacks have been processed.

This fixes an issue with SimpleAsyncHTTPClient when the server closes the
connection and the close is processed before all of the data is read.

Closes #306.
tornado/iostream.py
tornado/test/httpclient_test.py