chore: update quic-go

This commit is contained in:
wwqgtxx
2023-01-17 22:06:21 +08:00
parent fa5b5ca02d
commit 106a58779d
3 changed files with 4 additions and 4 deletions

View File

@ -406,7 +406,7 @@ func (c *quicPktConn) WriteTo(p []byte, addr string) error {
_ = struc.Pack(&msgBuf, &msg)
err = c.Session.SendMessage(msgBuf.Bytes())
if err != nil {
if errSize, ok := err.(quic.ErrMessageToLarge); ok {
if errSize, ok := err.(quic.ErrMessageTooLarge); ok {
// need to frag
msg.MsgID = uint16(rand.Intn(0xFFFF)) + 1 // msgID must be > 0 when fragCount > 1
fragMsgs := fragUDPMessage(msg, int(errSize))