fixed a corner-case where timeouts occur prematurely if the packet transmission is delayed