aboutsummaryrefslogtreecommitdiff
path: root/lib/std/process
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-15 21:52:18 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-16 00:16:15 -0700
commita0f9a5e78d1cf419e88c493f6f57e486df236e35 (patch)
treeb91fc5370cf921491e50da075e0d3bc609da6a73 /lib/std/process
parent07b753f22ba87357dca4aec3e93fbca912ac2197 (diff)
downloadzig-a0f9a5e78d1cf419e88c493f6f57e486df236e35.tar.gz
zig-a0f9a5e78d1cf419e88c493f6f57e486df236e35.zip
std: more reliable HTTP and TLS networking
* std.Io.Reader: fix confused semantics of rebase. Before it was ambiguous whether it was supposed to be based on end or seek. Now it is clearly based on seek, with an added assertion for clarity. * std.crypto.tls.Client: fix panic due to not enough buffer size available. Also, avoid unnecessary rebasing. * std.http.Reader: introduce max_head_len to limit HTTP header length. This prevents crash in underlying reader which may require a minimum buffer length. * std.http.Client: choose better buffer sizes for streams and TLS client. Crucially, the buffer shared by HTTP reader and TLS client needs to be big enough for all http headers *and* the max TLS record size. Bump HTTP header size default from 4K to 8K. fixes #24872 I have noticed however that there are still fetch problems
Diffstat (limited to 'lib/std/process')
0 files changed, 0 insertions, 0 deletions