willardf / Hazel-Networking

Hazel Networking is a low level networking library for C# providing connection-oriented, message-based communication via RUDP.
MIT License
385 stars 60 forks source link

Two DTLS bug fixes and some other stuff #42

Closed willardf closed 2 years ago

willardf commented 2 years ago

Fixes two bugs in DTLS and adjusts a constant:

Unrelated changes I hadn't committed: Clarified and improved tracking and reporting of ping. Historically, loopback connections would nearly infinite loop because resends would spam at 0ms or 1ms ping if the "remote" didn't handle every single packet perfectly. To fix this, I lazily capped min-ping at 50ms. This fixes it better by separating reported ping from min-resend-delay.