Limiting off() waiting time to one packet length for preventing timing bugs