Restore context for all read methods.

Prior to 2db0aceb32 this was being done
properly, but the refactor removed stack_context.wrap causing some issues
in our upstream context managers.
This commit is contained in:
Eden Li 2012-05-30 17:32:29 -07:00
parent 5cd350ace0
commit 4c19333132
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ class IOStream(object):
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.