There is a server that listens to connections. The client socket connects to the server and calls sendall() several times in a loop before closing it. However,
sendall()
Your server code is incorrect. You should use threading or any other technique to serve multiple client connections. What is happening here:
threading
1) Server accepts first socket
2) Server receives 72 bytes
3) Connection is closed because with operator closes it
with
4) Server goes to next accept-loop
accept