You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
assignee=Noneclosed_at=<Date2007-11-02.16:10:16.199>created_at=<Date2007-11-02.12:46:28.528>labels= ['tests']
title='turn off socket timeout in test_xmlrpc'updated_at=<Date2008-01-06.22:29:45.435>user='https://bugs.python.org/hupp'
The attached patch resolves the intermittent test_xmlrpc failures
reported by Neal Norwitz[0].
test_xmlrpc starts the XMLRPC server with a socket timeout. This puts
the socket into non-blocking mode which is incompatible with the use of
socket.makefile as used by SocketServer. To work around this the test
was specifically ignoring temporary read errors but the ignore was no
longer working.
The patch resolves this by removing the call to socket.settimeout and
the code to ignore temporary read errors.
I also had to change the `numrequests' parameter in
FailingServerTestCase from 2->1. This test case only makes a single
request per test (like the others) so numrequests=2 caused the test to hang.
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: