mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.http: use larger read buffer to hit faster tls code
This commit is contained in:
parent
1b3ebfefd8
commit
9017d758b9
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user