Skip to content

Large, fixed buffer size. #23

@macwilam

Description

@macwilam

Hi,
in lib.rs the buffer size is configured:
const BUFFER_SIZE: usize = 65_507;

I am trying to check the limit in lab testing in the number of agents I can poll with this crate and it seems that the buffer size starts to affect the memory usage.

This is not a bug and not a major issue.

However I was wondering why such a large buffer if most communication is done via UDP and limited by typical MTU anyway?

Is there a chance to make it configurable or maybe make feature flags for small (1550) and medium buffers (10000) for some jumbo frames?

Just a thought :)

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