I\'m new to python and sockets and am trying to write an echoing client/server socket. I have written the server so that 30% of the packets are lost. I programmed my client
I believe you are trying to subtract from pings at the end instead of your intended increments as written by your while statement.