Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@aplaikner
Copy link
Contributor

@aplaikneraplaikner commentedSep 1, 2024
edited by bedevere-appbot
Loading

aplaiknerand others added21 commitsJuly 3, 2024 11:21
@methanemethane self-requested a reviewSeptember 1, 2024 07:02
is_pipe=stat.S_ISFIFO(mode)
limit=self._default_pipe_sizeifis_pipeelseremaining
is_socket=stat.S_ISSOCK(mode)
limit=self._default_pipe_sizeifis_pipeoris_socketelseremaining
Copy link
Member

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?

Copy link
ContributorAuthor

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.

Copy link
Member

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.

aplaikner reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

How about updatingMisc/NEWS.d/next/C API/2024-07-03-10-11-53.gh-issue-121313.D7gARW.rst instead of adding new changelog?
Changelog is part of Python documentation. It should be readable than commitlog for Python users.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The 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.

@methane
Copy link
Member

See#123559. It is much simpler.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@methanemethanemethane left review comments

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@aplaikner@methane

[8]ページ先頭

©2009-2025 Movatter.jp