Skip to content

Commit a52ecae

Browse files
authored
Dont encode buffer (#39)
1 parent 0a53d69 commit a52ecae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Hologram/CustomCloud.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ def acceptIncomingConnection(self):
302302
self._receive_cv.acquire()
303303

304304
if self.socketClose:
305+
self.logger.debug('Closing socket connection')
305306
self._receive_cv.release()
306307
break
307308

@@ -325,10 +326,11 @@ def __incoming_connection_thread(self, clientsocket):
325326
clientsocket.settimeout(RECEIVE_TIMEOUT)
326327

327328
# Keep parsing the received data until timeout or receive no more data.
328-
recv = b''
329+
recv = ''
329330
while True:
330331
try:
331332
result = clientsocket.recv(MAX_RECEIVE_BYTES)
333+
self.logger.debug('Received message: %s', result)
332334
except socket.timeout:
333335
break
334336
if not result:

0 commit comments

Comments
 (0)