|
|
@ -1252,6 +1252,7 @@ class NodeConn(asyncore.dispatcher): |
|
|
|
self.sendbuf = self.sendbuf[sent:] |
|
|
|
self.sendbuf = self.sendbuf[sent:] |
|
|
|
|
|
|
|
|
|
|
|
def got_data(self): |
|
|
|
def got_data(self): |
|
|
|
|
|
|
|
try: |
|
|
|
while True: |
|
|
|
while True: |
|
|
|
if len(self.recvbuf) < 4: |
|
|
|
if len(self.recvbuf) < 4: |
|
|
|
return |
|
|
|
return |
|
|
@ -1289,6 +1290,8 @@ class NodeConn(asyncore.dispatcher): |
|
|
|
else: |
|
|
|
else: |
|
|
|
self.show_debug_msg("Unknown command: '" + command + "' " + |
|
|
|
self.show_debug_msg("Unknown command: '" + command + "' " + |
|
|
|
repr(msg)) |
|
|
|
repr(msg)) |
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
print 'got_data:', repr(e) |
|
|
|
|
|
|
|
|
|
|
|
def send_message(self, message, pushbuf=False): |
|
|
|
def send_message(self, message, pushbuf=False): |
|
|
|
if self.state != "connected" and not pushbuf: |
|
|
|
if self.state != "connected" and not pushbuf: |
|
|
|