Skip to content

gh-117208: handle EAGAIN in non-blocking connect#134688

Open
duaneg wants to merge 3 commits intopython:mainfrom
duaneg:gh-117208
Open

gh-117208: handle EAGAIN in non-blocking connect#134688
duaneg wants to merge 3 commits intopython:mainfrom
duaneg:gh-117208

Conversation

@duaneg
Copy link
Copy Markdown
Contributor

@duaneg duaneg commented May 26, 2025

When calling connect in non-blocking mode it fails with errno set to EINPROGRESS if the connection cannot be completed immediately. Except for UNIX domain sockets, on Linux, which fail with EAGAIN instead.

Fix the conditional check in the socket connection code to account for this lovely little inconsistency.

When calling ``connect`` in non-blocking mode it fails with errno set to
EINPROGRESS if the connection cannot be completed immediately. Except for UNIX
domain sockets, on Linux, which fail with EAGAIN instead.

Fix the conditional check in the socket connection code to account for this
lovely little inconsistency.
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review stale Stale PR or inactive for long period of time.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant