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
{{ message }}
Repository navigation
test_httpservers intermittent failure, test_post and EINTR #48021
Traceback (most recent call last):
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/test/test_httpservers.py",
line 326, in test_post
res =self.request('/cgi-bin/file2.py', 'POST', params, headers)
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/test/test_httpservers.py",
line 64, in request
returnself.connection.getresponse()
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/httplib.py",
line 949, in getresponse
response.begin()
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/httplib.py",
line 418, in begin
self.msg = HTTPMessage(self.fp, 0)
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/mimetools.py",
line 24, in __init__
rfc822.Message.__init__(self, fp, seekable)
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/rfc822.py",
line 108, in __init__
self.readheaders()
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/httplib.py",
line 274, in readheaders
line =self.fp.readline()
File
"/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/socket.py",
line 395, in readline
data = recv(1)
error: [Errno 4] Interrupted system call
Rerunning the test by itself always passes; maybe a SIGCHLD is
interrupting the recv() call.
Anyway, EINTR is a recoverable error - the socket code should probably
retry the read.
Activity
djmdjm commentedon Sep 4, 2008
On OpenBSD I'm seeing intermittent failures of test_httpservers with the
following error:
test_post (test.test_httpservers.CGIHTTPServerTestCase) ... ERROR
======================================================================
ERROR: test_post (test.test_httpservers.CGIHTTPServerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last): File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/test/test_httpservers.py", line 326, in test_post res = self.request('/cgi-bin/file2.py', 'POST', params, headers) File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/test/test_httpservers.py", line 64, in request return self.connection.getresponse() File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/httplib.py", line 949, in getresponse response.begin() File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/httplib.py", line 418, in begin self.msg = HTTPMessage(self.fp, 0) File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/mimetools.py", line 24, in __init__ rfc822.Message.__init__(self, fp, seekable) File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/rfc822.py", line 108, in __init__ self.readheaders() File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/httplib.py", line 274, in readheaders line = self.fp.readline() File "/usr/ports/lang/python/2.6/w-Python-2.6b3/Python-2.6b3/Lib/socket.py", line 395, in readline data = recv(1) error: [Errno 4] Interrupted system callRerunning the test by itself always passes; maybe a SIGCHLD is
interrupting the recv() call.
Anyway, EINTR is a recoverable error - the socket code should probably
retry the read.
[-]test_httpservers intermittent failure[/-][+]test_httpservers intermittent failure, test_post and EINTR[/+]skrah commentedon May 14, 2010
The EINTR issue should be fixed in trunk (bpo-1628205). Have you by
any chance run the test suite on trunk in the meantime?
gpshead commentedon Jun 5, 2011
This was fixed in the other bug in 2.6 and 2.7.