Skip to content

QUIC "Message too long" #4647

@nazar-pc

Description

@nazar-pc

Summary

With switch to QUIC I sometimes getting messages like this:

2023-10-14T07:49:21.668469Z sendmsg error: Os { code: 90, kind: Uncategorized, message: "Message too long" }, Transmit: { destination: 65.108.232.15:30533, src_ip: None, enc: Some(Ect0), len: 1420, segment_size: None }

Expected behavior

Should not exceed MTU

Actual behavior

Fails, likely due to exceeding MTU

Relevant log output

No response

Possible Solution

This likely happens because I have MTU set to 1420 (Wireguard is the reason) rather than more common 1500. If there is MTU expectation hardcoded somewhere it probably needs to change to MTU discovery instead. If MTU discovery is already present, it should not print warnings/errors.

Changing MTU back to 1500 resolves the issue.

Version

libp2p 0.52.3
libp2p-quic 0.9.2

Would you like to work on fixing this bug ?

Maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions