Skip to content

Commit

Permalink
Fix bug with IOLoop's 'waker' pipe which rendered it ineffective on l…
Browse files Browse the repository at this point in the history
…inux

and mac (where pipes are unidirectional) and caused high cpu usage
on solaris (where pipes are bidirectional).  Thanks to Jari Ahonen for
finding the bug.
  • Loading branch information
Ben Darnell committed Mar 9, 2010
1 parent 45f76c5 commit d2ca9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/ioloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self, impl=None):
self._set_close_exec(w)
self._waker_reader = os.fdopen(r, "r", 0)
self._waker_writer = os.fdopen(w, "w", 0)
self.add_handler(r, self._read_waker, self.WRITE)
self.add_handler(r, self._read_waker, self.READ)

@classmethod
def instance(cls):
Expand Down

0 comments on commit d2ca9ad

Please sign in to comment.