mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
codec: improve Builder::max_frame_length
docs (#4352)
This commit is contained in:
parent
78e0f0b42a
commit
dc1894105b
@ -746,7 +746,7 @@ impl Builder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the max frame length
|
/// Sets the max frame length in bytes
|
||||||
///
|
///
|
||||||
/// This configuration option applies to both encoding and decoding. The
|
/// This configuration option applies to both encoding and decoding. The
|
||||||
/// default value is 8MB.
|
/// default value is 8MB.
|
||||||
@ -767,7 +767,7 @@ impl Builder {
|
|||||||
///
|
///
|
||||||
/// # fn bind_read<T: AsyncRead>(io: T) {
|
/// # fn bind_read<T: AsyncRead>(io: T) {
|
||||||
/// LengthDelimitedCodec::builder()
|
/// LengthDelimitedCodec::builder()
|
||||||
/// .max_frame_length(8 * 1024)
|
/// .max_frame_length(8 * 1024 * 1024)
|
||||||
/// .new_read(io);
|
/// .new_read(io);
|
||||||
/// # }
|
/// # }
|
||||||
/// # pub fn main() {}
|
/// # pub fn main() {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user