(Note: taken further in a proper repo: https://github.com/taikedz/udp_test)
This is a quick thing I put together for testing UDP packet sending behaviours.
Interestingly, if a message is delayed by the server and sent after the client times out, the message is still received client side. An actual client would need to proactively manage response validity.
I did try randomly generating multiple identical repsonses from the server, that only caused confusion for this simple client.