increase write buffer size to 16kb

This commit is contained in:
Sean McArthur
2019-05-29 14:51:09 -07:00
parent 91819bf25e
commit 6ebad4bb41

View File

@@ -39,7 +39,10 @@ enum Next<B> {
}
/// Initialze the connection with this amount of write buffer.
const DEFAULT_BUFFER_CAPACITY: usize = 4 * 1_024;
///
/// The minimum MAX_FRAME_SIZE is 16kb, so always be able to send a HEADERS
/// frame that big.
const DEFAULT_BUFFER_CAPACITY: usize = 16 * 1_024;
/// Min buffer required to attempt to write a frame
const MIN_BUFFER_CAPACITY: usize = frame::HEADER_LEN + CHAIN_THRESHOLD;