-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
poplib.POP3/POP3_SSL should reject timeout = 0 (non-blocking mode) #83440
Comments
Since poplib.POP3/POP3_SSL's implementation depends on socket.makefile, the client should reject if the timeout is zero. |
I agree, I was the one who suggest to reject timeout=0 when you added the parameter to imaplib :-) Do you want to work on a PR? |
Sure, I will submit the PR by tomorrow :) |
ftplib: Line 155 in efa3b51
nntplib: Line 1049 in 2e6a8ef
smtplib: Line 386 in 3faf826
I found more things that depends on socket.makefile. |
ftplib: Line 155 in efa3b51
nntplib: Line 1049 in 2e6a8ef
smtplib: Line 386 in 3faf826
It seems like these 3 modules use makefile() and have a timeout parameter. If makefile() doesn't support non-blocking mode, sure, it's a good idea to also reject explicitly timeout=0 in these modules. |
Can we now close this issue? Or is there still something to do? |
There is no case on xxlib series except LMTP. |
Thanks Dong-hee Na for all these nice changes! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: