-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
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
Changes from all commits
108e65b
37ca606
df4f307
89936c2
31c65b4
0a4e4a3
7afde51
8d9b16e
e6c64fe
936b601
49d8adb
43e19dd
b0b86e5
2b6ff24
e726f51
59cff4d
da10f8e
94d4c4a
ed7fdac
54f3d5a
481d6ee
d130d8f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about updating There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was prompted by the blurp it bot to create a summary of the changes via the separate website. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This PR would fix the problem of overallocating memory when reading from Unix sockets, extending the merged PR regarding pipes. |
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.