-
Notifications
You must be signed in to change notification settings - Fork 1k
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: expose tcp_nodelay for clients and servers #145
Conversation
deny.toml
Outdated
@@ -16,6 +16,7 @@ deny = [ | |||
] | |||
skip = [ | |||
{ name = "crossbeam-utils", version = "=0.6.6" }, | |||
{ name = "crossbeam-queue", version = "=0.1.2" }, |
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.
can we back this out so that #153 contains the change.
Thanks for this |
7778aa6
to
6028aaf
Compare
if we can rebase this with master then we can merge this thanks! |
@@ -80,7 +80,7 @@ tower = { git = "https://github.com/tower-rs/tower" } | |||
# Required for routeguide | |||
serde = { version = "1.0", features = ["derive"] } | |||
serde_json = "1.0" | |||
rand = "0.7.2" | |||
rand = "0.6" |
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.
why rand 0.6?
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.
Sorry, didn't see this. Because at the time I wrote this, some other dependency (some tokio sub-crate, I think) wall pulling in 0.6, so I changed it to match.
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 guess once 0.1 is close to finished we can sweep through all deps and remove what is not essential.
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.
LGTM
* expose tcp_nodelay * do not depend on difference versions of rand
* add: take_io method to LazyConfigAcceptor The `take_io` method can be used to take back ownership of the client IO stream when an error occurs during clientHello handshake. An example of this is when a client tries to connect to an TLS socket expecting it to be plain text connection. In this case take_io can be used to send a 400 response, "The plain HTTP request was sent to HTTPS port", back to the client. * rename test lazy_config_acceptor_take_io
closes #119