-
Notifications
You must be signed in to change notification settings - Fork 20
Large, fixed buffer size. #23
Copy link
Copy link
Open
Description
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 :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels