mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
codec: also apply capacity to read buffer in Framed::with_capacity (#7500)
This commit is contained in:
@@ -119,7 +119,10 @@ where
|
|||||||
buffer: BytesMut::with_capacity(capacity),
|
buffer: BytesMut::with_capacity(capacity),
|
||||||
has_errored: false,
|
has_errored: false,
|
||||||
},
|
},
|
||||||
write: WriteFrame::default(),
|
write: WriteFrame {
|
||||||
|
buffer: BytesMut::with_capacity(capacity),
|
||||||
|
backpressure_boundary: capacity,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user