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

Separate Server from Connection #11675

Merged

Conversation

JosiahWI
Copy link
Contributor

The only parts of the interface they share are the close operation and the sock and addr fields. They have very little in common and I think the inheritance is kind of forced just for a minor convenience and not serving a useful purpose. To make sure this doesn't develop into a larger inheritance mess, I'd like to separate these now. This also puts Server in its own files for better organization and faster compilation.

The only parts of the interface they share are the `close` operation and the
`sock` and `addr` fields. They have very little in common and I think the
inheritance is kind of forced just for a minor convenience and not serving
a useful purpose. To make sure this doesn't develop into a larger inheritance
mess, I'd like to separate these now. This also puts `Server` in its own files
for better organization and faster compilation.
@JosiahWI JosiahWI added this to the 10.1.0 milestone Aug 13, 2024
@JosiahWI JosiahWI self-assigned this Aug 13, 2024
 * Use the correct address for accept events

   The Server's `addr` can be different from its `accept_addr`. These are not
   interchangeable.
@cmcfarlen cmcfarlen self-requested a review August 26, 2024 22:14
@JosiahWI JosiahWI merged commit 123e6a5 into apache:master Aug 27, 2024
15 checks passed
@JosiahWI JosiahWI deleted the refactor/server-connection-separation branch August 27, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants