]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Also catch "ValueError: I/O operation on closed file" 1876/head
authorAntoine Pitrou <antoine@python.org>
Thu, 3 Nov 2016 10:57:33 +0000 (11:57 +0100)
committerAntoine Pitrou <antoine@python.org>
Thu, 3 Nov 2016 10:57:33 +0000 (11:57 +0100)
tornado/platform/common.py
tornado/platform/posix.py

index ed539357ab29d2db1e471cd41b6753e44f606d93..2d4065ca633aaeb20d4cda2031687f8a1cb2513d 100644 (file)
@@ -91,7 +91,7 @@ class Waker(interface.Waker):
     def wake(self):
         try:
             self.writer.send(b"x")
-        except (IOError, socket.error):
+        except (IOError, socket.error, ValueError):
             pass
 
     def consume(self):
index 02fb2a35bb50b5c24ccc9db8b305399f9dafca02..572c013906b701b2d7f504054c866a077b769649 100644 (file)
@@ -53,7 +53,7 @@ class Waker(interface.Waker):
     def wake(self):
         try:
             self.writer.write(b"x")
-        except IOError:
+        except (IOError, ValueError):
             pass
 
     def consume(self):