bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0#17936
bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0#17936vstinner merged 2 commits intopython:masterfrom
Conversation
e1fe47d to
6237928
Compare
vstinner
left a comment
There was a problem hiding this comment.
This refactoring is interesting. I merged your other change to reject timeout=0, you should now rebase this PR.
Currently, this PR is a refactoring and rejects timeout=0. I prefer to have one commit per change.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
1841c55 to
02b3045
Compare
corona10
left a comment
There was a problem hiding this comment.
I have made the requested changes; please review again
Thanks for the review 👍
- I 've separated commits :)
- Also, applied feedback from code reviews, Thank you very much!
|
You should now rebase your PR on master, since I merged your other PR. |
|
@vstinner |
38bdc38 to
ff07e0a
Compare
vstinner
left a comment
There was a problem hiding this comment.
Ooooh, now I get it :-) I merged a PR to modify poplib, but this is a PR for nntplib :-D
Please split your PR to extract the _create_socket() refactoring. I would like to first have a PR for the refactoring, and then have a PR to reject timeout=0. Having a single PR for two changes makes review harder. In Python, we always squash multiple commits into a single commit on merge.
ff07e0a to
4dc7628
Compare
|
So this PR should be reviewed after #17939 is merged. |
|
I merged your PR #17939. You can now rebase this one on top of it (master branch). |
4dc7628 to
c435fa9
Compare
c435fa9 to
beb6021
Compare
Thanks! I 've rebased the PR :) |
|
Thanks to the refactoring, it was way easier to review this PR. It's now merged, thanks! |
bpo-39259: nntplib.NNTP/NNTP_SSL now reject timeout = 0 (pythonGH-17936)
nntplib.NNTP and nntplib.NNTP_SSL now raise a ValueError if the given timeout for their constructor is zero to prevent the creation of a non-blocking socket.
https://bugs.python.org/issue39259