Skip to content
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

Merged
merged 38 commits into from
Nov 1, 2024
Merged

feat(x): add h3/QUIC support to the fetch tool #305

merged 38 commits into from
Nov 1, 2024

Conversation

fortuna
Copy link
Contributor

@fortuna fortuna commented Oct 29, 2024

Also:

  • Use slog
  • Add key log support to decrypt on Wireshark

@fortuna fortuna marked this pull request as ready for review November 1, 2024 21:19
@fortuna fortuna requested a review from jyyi1 November 1, 2024 21:19
Base automatically changed from fortuna-config to main November 1, 2024 21:36
@@ -1,20 +1,21 @@
module github.com/Jigsaw-Code/outline-sdk/x

go 1.21
go 1.22
Copy link
Contributor Author

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.

Copy link
Contributor

@jyyi1 jyyi1 left a 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!

x/examples/fetch/main.go Outdated Show resolved Hide resolved
}
}

_, 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)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@fortuna fortuna merged commit 82b33bc into main Nov 1, 2024
6 checks passed
@fortuna fortuna deleted the fortuna-quic branch November 1, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants