pion / dtls

DTLS 1.2 Server/Client implementation for Go
https://pion.ly/
MIT License
603 stars 160 forks source link

about pmtu and message too long error #546

Closed markity closed 1 year ago

markity commented 1 year ago

I am implementing vpn.

Howerver my client read returned read udp xxxx:12345->xxxx:8000: message too long.

I found it comes from UdpConn.Read in inboundLoop().

After I closed the pmtu of client host, my vpn worked properly.

I want to konw if it is possible for dtls to take the "meesage too long" into consideration to hint the program to send smaller packet?

How can I handle this error elegantly?