mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
0e650b1a5b
There's two udp calls in `UdpTransport._ping()`: - socket.sendall(b"PINGPING") -> this will be instanteous, AND it will raise if the receiving side is not listening. - socket.recv() -> this will wait for SOCKET_TIMEOUT seconds, but only in case the sendall() succeeded. This means that receiving side exists and we are now waiting until it's awake enough to respond. In conclusion, we avoid hammering emulator with PINGPINGs with a timeout so short we don't see an answer. This should avoid the problem occasionally seen in CI and described in #1668 |
||
---|---|---|
.. | ||
.gitignore | ||
379.changed | ||
379.deprecated.1 | ||
379.deprecated.2 | ||
379.deprecated.3 | ||
810.removed | ||
1227.added | ||
1258.added | ||
1258.changed | ||
1266.changed | ||
1531.removed | ||
1541.changed | ||
1668.changed | ||
1671.added | ||
1671.incompatible |