Remove debug messages about sent and received bytes
This commit is contained in:
parent
5095849884
commit
dbe23e90ce
|
@ -68,12 +68,10 @@ class Connection(threading.Thread):
|
|||
if self.status == 'fully_established':
|
||||
data = self.s.recv(4096)
|
||||
self.buffer_receive += data
|
||||
logging.debug('Received {} bytes from {}:{}'.format(len(data), self.host, self.port))
|
||||
if data and self.buffer_receive < self.next_message_size:
|
||||
continue
|
||||
else:
|
||||
data = self.s.recv(self.next_message_size - len(self.buffer_receive))
|
||||
logging.debug('Received {} bytes from {}:{}'.format(len(data), self.host, self.port))
|
||||
self.buffer_receive += data
|
||||
except ssl.SSLWantReadError:
|
||||
pass
|
||||
|
@ -129,7 +127,6 @@ class Connection(threading.Thread):
|
|||
try:
|
||||
amount = self.s.send(self.buffer_send)
|
||||
self.buffer_send = self.buffer_send[amount:]
|
||||
logging.debug('Sent {} bytes to {}:{}'.format(amount, self.host, self.port))
|
||||
except (BlockingIOError, ssl.SSLWantWriteError):
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user