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
Fix for #777597 - socketmodule.c connection handling incorec #40332
Comments
I took Garth Bushell's inlined code from I created the patch as a starting point for a fix. I One major problem is that Garth removed the writefds I hope to submit a fixed and tested patch soon. I'll |
Logged In: YES OK... As promised, here is the regression test. The test passes on Linux and fails on Windows XP with Python I'd appreciate any comments on the test. FAIL: testTCPConnectionRefused Traceback (most recent call last):
File "Lib\test\test_socket.py", line 752, in
testTCPConnectionRefused
self.failUnlessEqual(exc_type, socket.error)
File "C:\Program Files\Python23\lib\unittest.py", line
302, in failUnlessEqual
AssertionError: <class socket.timeout at 0x00945510> != |
Logged In: YES Here is the fixed patch. It compiles and passes the |
Logged In: YES Some additional testing showed that the regression test |
A similar patch was applied 4 years ago, in r36739. |
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: