FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-117657: Using critical section to make _socket.socket.close thread safe by aisk · Pull Request #120490 · python/cpython · GitHub

/ cpython Public

gh-117657: Using critical section to make _socket.socket.close thread safe - #120490

Merged
encukou merged 1 commit into
python:mainfrom
aisk:sock-close-race
Jul 1, 2024
Merged

gh-117657: Using critical section to make _socket.socket.close thread safe#120490
encukou merged 1 commit into
python:mainfrom
aisk:sock-close-race

Conversation

aisk commented Jun 14, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

This function has a temporary variable fd which will be fetched and stored from or to _socket.socket.fd, so using critical section to make it thread safe with free-threads build.

aisk changed the title Using critical section to make _socket.socket.close thread safe gh-117657: Using critical section to make _socket.socket.close thread safe Jun 14, 2024
aisk added the skip news label Jun 14, 2024

Copy link
Copy Markdown
Member

Will wait some time for someone else to give a review if they want to.

encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

It looks straightforward to me :)

encukou merged commit 8a51767 into python:main Jul 1, 2024
aisk deleted the sock-close-race branch July 1, 2024 16:56
Akasurde pushed a commit to Akasurde/cpython that referenced this pull request Jul 3, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
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
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.

4 participants


Back | FazBrowse Home | New Git URL