Skip to content

Commit 2a81997

Browse files
committed
fix: accept full 256k channel packets
1 parent 9206cba commit 2a81997

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

russh/src/cipher/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ pub(crate) async fn read<R: AsyncRead + Unpin>(
311311
pub(crate) const PACKET_LENGTH_LEN: usize = 4;
312312

313313
const MINIMUM_PACKET_LEN: usize = 16;
314-
const MAXIMUM_PACKET_LEN: usize = 256 * 1024;
314+
const MAXIMUM_PACKET_LEN: usize = 256 * 1024 + 36;
315315

316316
const PADDING_LENGTH_LEN: usize = 1;
317317

0 commit comments

Comments
 (0)