reverting r88395 and r88387 as per http://mail.python.org/pipermail/python-dev/2011-February/108005.html
This commit is contained in:
parent
42e0b7f47e
commit
900d547047
|
@ -218,9 +218,10 @@ def loop(timeout=30.0, use_poll=False, map=None, count=None):
|
|||
|
||||
class dispatcher:
|
||||
|
||||
debug = False
|
||||
connected = False
|
||||
accepting = False
|
||||
closed = False
|
||||
closing = False
|
||||
addr = None
|
||||
ignore_log_types = frozenset(['warning'])
|
||||
|
||||
|
@ -393,8 +394,6 @@ class dispatcher:
|
|||
raise
|
||||
|
||||
def close(self):
|
||||
if not self.closed:
|
||||
self.closed = True
|
||||
self.connected = False
|
||||
self.accepting = False
|
||||
self.del_channel()
|
||||
|
@ -545,6 +544,8 @@ class dispatcher_with_send(dispatcher):
|
|||
return (not self.connected) or len(self.out_buffer)
|
||||
|
||||
def send(self, data):
|
||||
if self.debug:
|
||||
self.log_info('sending %s' % repr(data))
|
||||
self.out_buffer = self.out_buffer + data
|
||||
self.initiate_send()
|
||||
|
||||
|
|
Loading…
Reference in New Issue