Skip to content

quinn-udp should propogate truncation information #2318

@AaronKutch

Description

@AaronKutch

In this block here

if hdr.msg_flags & libc::MSG_TRUNC != 0 {
, it seems to just silently drop packets when they are truncated. I don't see the same thing elsewhere, I presume it silently truncates in the other implementations, but I would want to know there as well. Hilariously, AI is hallucinating a pub truncated: bool, field in RecvMeta, I'm thinking that is the best approach (I am mainly only using AI to ask about ridiculous OS related things, to be clear).

I know that I could just use large enough byte buffers everywhere, but there are networks with large MTUs and I even forsee possible u16::MAX buffers in my use cases. I would prefer to just detect truncation and write code once to automatically increase buffer sizes as necessary so that I don't have to think about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions