-
Notifications
You must be signed in to change notification settings - Fork 579
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
net: eliminate indirection through net::server:resources
type
#7883
Conversation
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
virtual ss::future<> apply(resources) = 0; | ||
virtual ss::future<> apply(ss::lw_shared_ptr<net::connection>) = 0; | ||
|
||
server_probe& probe() { return _probe; } |
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.
private or protected?
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.
it's public
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 structure
net::server:resources
was a container for ashared_ptr<net::connection>
and a reference to the underlying server and a selection of accessors for server resources.Where #7860 flattened the
net::protocol
intonet::server
, this change flattens connection handling. For example, in many cases accesses to the server through thenet::server:resources
object is made in the context thenet::server
subclass, and these resources can be accessed directly rather than requiring the extra hop through the resources object.Backports Required
UX Changes
Release Notes