Skip to content

gh-84808: Handle errors returned by internal_connect() #122304

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

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

korli
Copy link
Contributor

@korli korli commented Jul 26, 2024

Python shouldn't assume that errno codes are positive.

reported and proposed by Ryan C. Gordon

@ghost
Copy link

ghost commented Jul 26, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Jul 26, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Jul 27, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Jul 27, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@encukou
Copy link
Member

encukou commented Sep 4, 2024

@korli: Did that help? Do you need more info?
Or would you prefer someone else to finish this PR?

@bedevere-app
Copy link

bedevere-app bot commented Sep 6, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

2 similar comments
@bedevere-app
Copy link

bedevere-app bot commented Sep 6, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@bedevere-app
Copy link

bedevere-app bot commented Sep 6, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz picnixz dismissed their stale review September 6, 2024 10:04

Changes were made (just a missing NEWS entry, if needed)

internal_connect() errors when returning -1 with exception set.

reported and proposed by Ryan C. Gordon
error handling scheme (raise, no raise) as suggested by encukou

Co-authored-by: Petr Viktorin <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 6, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@korli
Copy link
Contributor Author

korli commented Sep 6, 2024

@korli: Did that help? Do you need more info? Or would you prefer someone else to finish this PR?

@encukou thanks, indeed that helps to better understand and implement the review comments. Sorry for the delay.

Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

Thank you!

I'll touch up the NEWS entry to mention user-facing API, and merge.

In the future, please don't rebase pull requests to CPython. Rebasing throws away the previously reviewed commits, so all of the PR needs to be reviewed again.
But on small PRs like this one, it's not much of a problem :)

@encukou encukou enabled auto-merge (squash) September 9, 2024 14:39
@encukou encukou merged commit 65fcaa3 into python:main Sep 9, 2024
37 checks passed
@korli
Copy link
Contributor Author

korli commented Sep 9, 2024

I'll touch up the NEWS entry to mention user-facing API, and merge.

Thank you!

In the future, please don't rebase pull requests to CPython. Rebasing throws away the previously reviewed commits, so all of the PR needs to be reviewed again. But on small PRs like this one, it's not much of a problem :)

Indeed, sorry I'm used to push clean commits.

@korli korli deleted the bug84808 branch September 12, 2024 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants