-
-
Notifications
You must be signed in to change notification settings - Fork 41
http: Implement callbacks to configure the sockets used as listeners #407
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
Open
DrSloth
wants to merge
22
commits into
ScuffleCloud:main
Choose a base branch
from
DrSloth:reuseport_impl
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b3ac7a4
Implement callbacks to configure the sockets used as listeners
DrSloth 5d488ad
Run just fmt
DrSloth 710788a
Execute workspace hack and add feature flags to the configure socket …
DrSloth 9dd70fb
Make ConfigureSocketCallback Send
DrSloth d929ed1
Make ConfigureSocketCallback also Sync
DrSloth a7d66e7
fix(http): feature gate
lennartkloock 890d7ef
fix(http): udp socket
lennartkloock 202a9d1
fix(http): `IPV6_V6ONLY` flag
lennartkloock f6cd705
docs: add changelog file
lennartkloock 64e2f8f
Change shebangs in Justfile from '/bin/bash/' to '/usr/bin/env bash'
DrSloth e6efd14
Auto merge of https://github.com/ScuffleCloud/scuffle/pull/410 - chan…
scuffle-brawl[bot] 0e3b2a7
Implement callbacks to configure the sockets used as listeners
DrSloth 9609aca
Run just fmt
DrSloth 79ce58f
Execute workspace hack and add feature flags to the configure socket …
DrSloth 1b9ea7e
Make ConfigureSocketCallback Send
DrSloth 97cc48e
Make ConfigureSocketCallback also Sync
DrSloth 8b8dc97
fix(http): feature gate
lennartkloock c48e43f
fix(http): udp socket
lennartkloock 0f484c8
fix(http): `IPV6_V6ONLY` flag
lennartkloock 358c557
docs: add changelog file
lennartkloock 0739b17
Change the ConfigureSocketCallback to a CreateSocketCallback and star…
DrSloth 08559d9
Adapt unit test
DrSloth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[[scuffle-http]] | ||
category = "feat" | ||
description = "add ability to configure sockets using callbacks" | ||
authors = ["@DrSloth", "@lennartkloock"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I suspect this might not work on windows. Previously when adding windows support we found that if the listener was constructed outside of tokio it would block the eventloop even if non-blocking was set to true. We didnt investigate this further than that, but perhaps this might be a good time to understand why this behaviour was the case when using
std::net::TcpListener::bind
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.
I have run just fmt now. I haven't had this problem on windows yet at least when using the socket2 crate but my time spent in windows is not a lot.