Wait until the server is actually up and running before booting up the simulator.
We do that by sending a packet with the QUIC version WAIT (in ASCII) to the server, which will elicit a Version Negotiation packet. Once we receive a VN packet, we know that the server is up.
When running the simulator, this is triggered by the environment variable WAITFORSERVER (which contains the address:port of the server to wait for).
Wait until the server is actually up and running before booting up the simulator.
We do that by sending a packet with the QUIC version WAIT (in ASCII) to the server, which will elicit a Version Negotiation packet. Once we receive a VN packet, we know that the server is up.
When running the simulator, this is triggered by the environment variable
WAITFORSERVER
(which contains the address:port of the server to wait for).