GeezerVison is showing github.com — gh-103673: Add missing ForkingUnixStreamServer and ForkingUnixDatagramServer socketservers by jb2170 · Pull Request #103674 · python/cpython
Conversation
jb2170
commented
Apr 22, 2023
•
edited by bedevere-bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
sobolevn
changed the title
gh-103673
gh-103673: Add missing ForkingUnixStreamServer and ForkingUnixDatagramServer socketservers
Apr 22, 2023
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.
Thanks a lot for the feature suggestion and the implementation.
Please, to increase the chances of this feature been accepted, add tests and docs: when to use these new types of servers, how, etc.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jb2170 and gpshead reacted with thumbs up emoji
Uh oh!
There was an error while loading. Please reload this page.
admittedly other existing lines don't always do this. this module is very old code.
Co-authored-by: Nikita Sobolev <[email protected]>
…am}Server from socketserver
add tests
I have now updated Lib/test/test_socketserver.py to include the appropriate tests. Turns out it was defining its own ForkingUnix{Stream,Datagram}Server within the test file exactly as we are adding to socketserver, who would've guessed hahaha.
and docs
The current docs already describe in detail the ThreadingMixIn and ForkingMixIn, when to use them etc. The only thing that really needed adding was the mentions of the new servers at the 'These classes are pre-defined using the mix-in classes' section. The existing documentation only mentions the {Forking,Threading}{TCP,UDP}Server classes once in this section, and the new docs in this PR are consistent with this; the documentation seems enough.
Thanks for the intermediary commits. The PR is now up-to-date again with main and is conflict free.
|
gpshead reacted with laugh emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
gpshead
gpshead approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|