-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
bpo-38615: Add timeout parameter for IMAP4 and IMAP4_SSL constructor #17203
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch. See my notes about using a default value of None
. Also, tests are needed.
Misc/NEWS.d/next/Library/2019-11-17-17-32-35.bpo-38615.OVyaNX.rst
Outdated
Show resolved
Hide resolved
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 |
I have made the requested changes; please review again
Since the PR affected constructor but the document talk about commands, |
Thanks for making the requested changes! @ericvsmith: please review the changes made to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to find some way for testing the actual functionality of timing out. Maybe poplib or smtplib or something similar has some code that can be used?
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 |
I have made the requested changes; please review again
|
Thanks for making the requested changes! @ericvsmith: please review the changes made to this pull request. |
@ericvsmith @python/email-team if you don't mind, Can I get the review for this PR? |
@maxking Would you like to take a look at this PR if you don`t mind? |
Thanks for making the requested changes! @maxking, @vstinner, @ericvsmith: please review the changes made to this pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the update (reject timeout=0).
Hum, 2 tests failed on the macOS :-( @corona10: Can you have a look?
|
Co-Authored-By: Victor Stinner <vstinner@python.org>
I am able to reproduce in my local machine. I will take look at it. |
@vstinner I have made the requested changes; please review again This is a potential issue.
|
Thanks for making the requested changes! @vstinner, @ericvsmith, @maxking: please review the changes made to this pull request. |
…ythonGH-17203) imaplib.IMAP4 and imaplib.IMAP4_SSL now have an optional *timeout* parameter for their constructors. Also, the imaplib.IMAP4.open() method now has an optional *timeout* parameter with this change. The overridden methods of imaplib.IMAP4_SSL and imaplib.IMAP4_stream were applied to this change.
https://bugs.python.org/issue38615