Skip to content
Browse files

Restore context for all read methods.

Prior to 2db0ace this was being done
properly, but the refactor removed stack_context.wrap causing some issues
in our upstream context managers.
  • Loading branch information...
1 parent 5cd350a commit 4c19333132ec568eb881401a47ab83db4a3cae2a @eden eden committed May 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tornado/iostream.py
View
2 tornado/iostream.py
@@ -366,7 +366,7 @@ def _handle_read(self):
def _set_read_callback(self, callback):
assert not self._read_callback, "Already reading"
- self._read_callback = callback
+ self._read_callback = stack_context.wrap(callback)
def _try_inline_read(self):
"""Attempt to complete the current read operation from buffered data.

0 comments on commit 4c19333

Please sign in to comment.
Something went wrong with that request. Please try again.