fix(protocol): retain completed DTLS handshakes

This commit is contained in:
Jason Morcos
2026-08-15 11:42:28 -07:00
parent bc4465b274
commit 31be87061a
4 changed files with 23 additions and 11 deletions
+4
View File
@@ -57,6 +57,10 @@ retransmissions within that same deadline:
sess.connect(timeout=4.0)
```
The deadline stops further setup, retries, and network waits. If OpenSSL
reports that the handshake completed at the deadline boundary, the completed
session is retained rather than torn down as a timeout.
Connection attempts can also use a one-way cancellation signal. The signal is
backed by a socketpair, so setting it wakes the network wait immediately while
OpenSSL retains control of DTLS retransmission timing: