wolfssl-py/examples
Juliusz Sosinowicz c29eb6760b Fix DTLS server example consuming the ClientHello before handshake (F-3481)
The DTLS branch called bind_socket.recvfrom(1) before creating the
context. On UDP that removes the entire first datagram (the client's
ClientHello) from the queue and discards everything past the first
byte, so wolfSSL_accept() had nothing to consume and the handshake
only recovered after the client's retransmit timer. The captured
from_addr was also reused for every iteration of the -i loop.

Replace it with a peek_peer_address() helper that uses MSG_PEEK to read
the source address without consuming the datagram, and move the peek
into the accept loop so the address is refreshed per connection.
2026-06-23 11:22:06 +00:00
..
client.py Guard shutdowns and clean up code 2026-04-14 17:10:36 +00:00
server.py Fix DTLS server example consuming the ClientHello before handshake (F-3481) 2026-06-23 11:22:06 +00:00