-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious traceback with enum switch #18574
Comments
Bisection shows last good commit is b784f64, which is part of #18173. Commits in between can't compile until 67d7d7b introduced a fix, so they are all skipped. Bisection script: time cmake --build build --config Debug -t install -j || exit 125
time zig build-exe traceback-issue.zig || exit 125
! ./traceback-issue 2>&1 | grep 'return parseEnum(ExtensionId, bytes, element);' Bisection log:
|
It's because bing.com does not support TLS 1.3 yet, see #14172.
…---Original---
From: ***@***.***>
Date: Thu, Jan 18, 2024 23:51 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [ziglang/zig] Spurious traceback with enum switch (Issue #18574)
Why is the TLS handshake failure expected? I'm trying to use the std.http.Client, and it's not clear from the documentation what I am doing wrong.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thank you! |
@Vexu why is this not planned? Does it mean we should interpret all failures of TLS as Certificate errors? |
because its a duplicate of the issue mentioned above |
Thanks! I didn't see it. |
Zig Version
0.12.0-dev.2236+32e88251e
Steps to Reproduce and Observed Behavior
The MWE deterministicaly triggers a TLS handshake failure, which is expected, but the trace back has unnecessary entries.
When run with
zig run traceback-issue.zig
, the log is:Note that the code already errors upon reaching
.CONNRESET => return error.ConnectionResetByPeer
, but the top two trace back entries report spurious problem withparseEnum
, which is unexpected.Expected Behavior
The top two entries should not appear, i.e., the trace back starts from the line
.CONNRESET => return error.ConnectionResetByPeer
.The text was updated successfully, but these errors were encountered: