-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-5369 - Re-raise socket.timeout errors if the deadline has alre… #2326
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
base: master
Are you sure you want to change the base?
Conversation
…ady been execeeded
On second thought, I intentionally added the non-blocking read to avoid spurious reconnects on SDAM connections when using the driver in FaaS services that pause/resume the process, see https://jira.mongodb.org/browse/PYTHON-3186. I'm not sure we can accept this change. Although, if the test_sigstop_sigcont regression test still passes, perhaps we can? |
Looks like that regression test isn't passing... |
Can we not use the FaaS detection logic and preserve the current behavior in that case? |
Since |
My vote is yes |
@@ -1967,6 +1967,7 @@ def test_srv_max_hosts_kwarg(self): | |||
"loadBalanced clients do not run SDAM", | |||
) | |||
@unittest.skipIf(sys.platform == "win32", "Windows does not support SIGSTOP") | |||
@unittest.skipUnless(_is_faas(), "Non-FaaS environments raise timeouts faster") |
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 can't skip this test like this because we don't run the test suite on faas platforms. We want this test to run locally.
…ady been execeeded