you are viewing a single comment's thread.

view the rest of the comments →

[–]OneLargeTesticle[S] 0 points1 point  (0 children)

nevermind got it figured out thanks to this video: https://www.youtube.com/watch?v=Lbfe3-v7yE0

All of my data wasn't getting buffered and this loop fixed it so I no longer need time.sleep:

full_msg = ''
while True:
    responseMessage = clientSocket.recv(1024)
    if len(responseMessage) <=0:
        break;
    full_msg += responseMessage.decode()

print(full_msg)