-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat(x): add h3/QUIC support to the fetch tool #305
Conversation
@@ -1,20 +1,21 @@ | |||
module github.com/Jigsaw-Code/outline-sdk/x | |||
|
|||
go 1.21 | |||
go 1.22 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, quic-go requires 1.22. We'll need to keep this quite recent in order to support newer protocol updates, unfortunately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update! We can use QUIC now!
} | ||
} | ||
|
||
_, err = io.Copy(os.Stdout, resp.Body) | ||
fmt.Println() | ||
if err != nil { | ||
log.Fatalf("Read of page body failed: %v\n", err) | ||
slog.Error("Read of page body failed", "error", err) | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that os.Exit
will bypass all defer
calls, I guess it's OK in this PR since all resources will be cleaned up when the process ends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Though I'll also add that this is no different from what we currently have with the Fatal calls, which calls os.Exit.
Co-authored-by: J. Yi <[email protected]>
Also: