Hmmm... Looking at /usr/lib/python2.4/httplib.py, sock.readline() gets an
EOF upon reading the first byte. Do you see anything in the error logs
associated with this, like a segfault?
To make it easier to isolate, try editing test.py to comment out all
other tests and just leave this one. Look for a line that looks like:
perRequestSuite.addTest(PerRequestTestCase("test_req_headers_out"))
and comment out every other test in this block but this one, then rerun
it. At the end you should have a log file in the logs directory,
hopefully it will contain a clue.
Thanks!
On Tue, 25 Oct 2005, Dominic Wong wrote:
-1 for Gentoo Linux 2.6.13-gentoo-r3
Apache 2.0.54
Python 2.4.1
* Testing req.headers_out
connect: (127.0.0.1, 32873)
send: 'GET / HTTP/1.1\r\nAccept-Encoding: identity\r\nHost:
test_req_headers_out:32873\r\n\r\n'
reply: ''
E
======================================================================
ERROR: test_req_headers_out (__main__.PerRequestTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 597, in test_req_headers_out
response = conn.getresponse()
File "/usr/lib/python2.4/httplib.py", line 863, in getresponse
response.begin()
File "/usr/lib/python2.4/httplib.py", line 333, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.4/httplib.py", line 297, in _read_status
raise BadStatusLine(line)
BadStatusLine
----------------------------------------------------------------------