std.http: use larger read buffer to hit faster tls code

This commit is contained in:
Nameless 2023-05-06 21:35:04 -05:00
parent 1b3ebfefd8
commit 9017d758b9
No known key found for this signature in database
GPG Key ID: A477BC03CAFCCAF7
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ pub const Connection = struct {
/// A buffered (and peekable) Connection.
pub const BufferedConnection = struct {
pub const buffer_size = 0x2000;
pub const buffer_size = std.crypto.tls.max_ciphertext_record_len;
conn: Connection,
read_buf: [buffer_size]u8 = undefined,

View File

@ -95,7 +95,7 @@ pub const Connection = struct {
/// A buffered (and peekable) Connection.
pub const BufferedConnection = struct {
pub const buffer_size = 0x2000;
pub const buffer_size = std.crypto.tls.max_ciphertext_record_len;
conn: Connection,
read_buf: [buffer_size]u8 = undefined,