-
Notifications
You must be signed in to change notification settings - Fork 274
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
Call middleware #318
Call middleware #318
Conversation
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.
The code lgtm but I am a bit hazy on the context here; is this preparatory work for proxying/caching?
@dvdplm Indeed. The middleware that allows you to handle every single |
if cfg!(windows) { 58 } else { 59 }, | ||
result.len() | ||
assert!( | ||
result.len() == 58 || result.len() == 59 |
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.
looks like this modification (58 for Windows) was only required for appveyor and not travis windows, I guess travis is using visualstudio2017 toolchain
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.
Right, although afaict the port is just chosen randomly, so it's weird to assume that it's always going to be a 5-digit number.
* Avoid Boxing in middleware. * Add on_call to the middleware. * Properly workaround FnOnce in the on_drop interface. * Re-export separator from tcp server. * Fix windows build again.
* Avoid Boxing in middleware. * Add on_call to the middleware. * Properly workaround FnOnce in the on_drop interface. * Re-export separator from tcp server. * Fix windows build again.
* Avoid Boxing in middleware. * Add on_call to the middleware. * Properly workaround FnOnce in the on_drop interface. * Re-export separator from tcp server. * Fix windows build again.
* Avoid Boxing in middleware. * Add on_call to the middleware. * Properly workaround FnOnce in the on_drop interface. * Re-export separator from tcp server. * Fix windows build again.
No description provided.