瀏覽代碼

Don't check whether we can write on a listener

Nick Mathewson 6 年之前
父節點
當前提交
0687600c10
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/chutney/Traffic.py

+ 3 - 0
lib/chutney/Traffic.py

@@ -125,6 +125,9 @@ class Listener(asyncore.dispatcher):
         self.listen(0)
         self.tt = tt
 
+    def writable(self):
+        return False
+
     def handle_accept(self):
         # deprecated in python 3.2
         pair = self.accept()