-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-123557: Limit the reading size from Unix sockets to same limit pipes use #123558
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
Closed
aplaikner
wants to merge
22
commits into
python:main
from
aplaikner:feature-smaller-socket-buffer-pull-request
Closed
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
108e65b
Add clean code
aplaikner 37ca606
Fix linting error & sysconf unsupported error
aplaikner df4f307
Merge branch 'main' into feature-smaller-pipe-buffer-pull-request
aplaikner 89936c2
📜🤖 Added by blurb_it.
blurb-it[bot] 31c65b4
Fix news
aplaikner 0a4e4a3
Make page size non static
aplaikner 7afde51
Merge branch 'main' into feature-smaller-pipe-buffer-pull-request
aplaikner 8d9b16e
Merge branch 'main' into feature-smaller-pipe-buffer-pull-request
aplaikner e6c64fe
Remove redundant call to pymin
aplaikner 936b601
Shift pipe check to connection.py _recv
aplaikner 49d8adb
Make pipe size dependant on systems page size
aplaikner 43e19dd
Only execute fstat in case reading size is bigger than default pipe size
aplaikner b0b86e5
Update news message
aplaikner 2b6ff24
Make imports order alphabetical
aplaikner e726f51
Shift calculation for pipe size to existing if _winapi check
aplaikner 59cff4d
Fix linting error
aplaikner da10f8e
Merge branch 'main' into feature-smaller-pipe-buffer-pull-request
aplaikner 94d4c4a
Create constant for default number of pages per pipe
aplaikner ed7fdac
Extend pipes fix to Unix sockets
8000
aplaikner 54f3d5a
Merge branch 'feature-smaller-socket-buffer-pull-request' into featur…
aplaikner 481d6ee
Merge pull request #1 from aplaikner/feature-smaller-socket-buffer
aplaikner d130d8f
📜🤖 Added by blurb_it.
blurb-it[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
How about use the limit for all connection, instead of socket and pipe?
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.
If there are no performance drawbacks for other types of connections, then it's a solid solution. I've only analyzed pipes and sockets.
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 don't know connection other than pipe and socket.
But mmap+mremap+munmap overhead is very common issue for all streams.
So using chunked read by default and override it in special connection class seems better solution.