You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for Axum users to reduce heavy memory usage when implementing WebSockets (which is the reason I'm filing this bug report), pub fn read_buffer_size must be available to call.
I'm using axum = { version = "0.8.1", features = ["ws"] }
The text was updated successfully, but these errors were encountered:
pub fn read_buffer_size is not available to call in Axum using feature "ws", this breaks tungstenite API.
pub fn write_buffer_size and the rest of the methods are available to call except for fn read_buffer_size which is also marked as pub like the others.
impl WebSocketUpgrade {
/// Read buffer capacity. The default value is 128KiB
pub fn read_buffer_size(mut self, size: usize) -> Self {
self.config.read_buffer_size = size;
self
} ...not available to call
pub fn write_buffer_size ..available to call
...rest of the methods also available to call
This issue is likely related to snapview/tungstenite-rs#480 (Heavy memory usage difference between 0.24 and 0.25 #480)
In order for Axum users to reduce heavy memory usage when implementing WebSockets (which is the reason I'm filing this bug report), pub fn read_buffer_size must be available to call.
I'm using axum = { version = "0.8.1", features = ["ws"] }
The text was updated successfully, but these errors were encountered: