Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Sean DuBois 2e348fc7a2 Move DTLS wire format to pkg
This is allow users to provide their own ciphers in the future. Also
it reduces the amonut of code in the root of the repository.

Resolves #333
2021-01-16 10:15:40 -08:00
Ryan Gordon 589dc6eb16 Compact handshake records into less packets
Currently each record during the handshake process is sent as a
separate packet. The dTLS spec allows for combining records into a
signal packet so long as the packet fits within the MTU. Here we
implement this improvement, compacting records during the handshake
process into less packets. The number of packets sent for a complete
handshake before this change was 12. With this change the number is
reduced to 7. While improvements are likely hard to measure, this
should reduce tail handshake latency in lossy networks.
2019-11-06 22:07:43 -08:00