pythonping icon indicating copy to clipboard operation
pythonping copied to clipboard

Latency is wrong after connection drops

Open george-galvin opened this issue 11 months ago • 0 comments

Describe the bug Sometimes after reconnecting after a connection drop, a ping request will be answered immediately by the response from the previous request which is waiting in the socket buffer. This creates a chain reaction where each request afterwards is answered by the response to the previous one, and so the ping latency is basically zero.

To Reproduce Steps to reproduce the behavior:

  • Run a ping test with a high count
  • Mess with the connection to cause drops (can take a few tries)

Expected behavior There should be a check that the sent sequence number = received sequence number.

Screenshots Here, I added print statements in executor.py to display the sent/received sequence numbers image

image

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.3 LTS

george-galvin avatar Mar 12 '24 17:03 george-galvin