msg: fix server issue

This commit is contained in:
Quentin De Coninck 2017-02-23 14:39:34 +01:00
parent d81c5dff8d
commit 5270b53209

View File

@ -56,7 +56,7 @@ class HandleClientConnectionThread(threading.Thread):
time.sleep(args.sleep)
response = string_generator(size=self.msg_size, chars=string.digits)
start_time = datetime.datetime.now()
self.connection.sendall(response).encode(ENCODING)
self.connection.sendall(response.encode(ENCODING))
buffer_data = ""
elif len(buffer_data) > self.msg_size: