[Twisted-Python] apache and twisted.web bug

Jon Dyte jon at totient.demon.co.uk
Sun Jul 7 13:45:26 EDT 2002


I believe this is fixed in CVS.
It looks v.similar to a bug I reported a month back.

Jon

Gavin Cooper wrote :-
> I have Apache version 1.3.26 acting as a reverse proxy
> for my network. This is what receives the requests
> for www.tmdn.net. Before the Apache exploit deal, I
> had everything working fine, with requests for tmdn.net
> being forwarded to a twisted.web on another machine.
> The previous Apache version I used was something like 1.3.23.
> Now however, users get an error message that can be seen
> at www.tmdn.net now. Heres what the twistd.log says:
> 
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1] Traceback (most recent call last):
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/internet/default.py", line 347, in doSelect
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     why = getattr(selectable, method)()
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/internet/tcp.py", line 93, in doRead
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     return self.protocol.dataReceived(data)
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/protocols/basic.py", line 161, in dataReceived
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     self.lineReceived(line)
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/protocols/http.py", line 684, in lineReceived
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     self.allHeadersReceived()
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/protocols/http.py", line 733, in allHeadersReceived
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     self.persistent = self.checkPersistence(req, self.__version)
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/protocols/http.py", line 759, in checkPersistence
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     request.setHeader('connection', 'close')
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]   File "/usr/lib/python2.1/site-packages/twisted/protocols/http.py", line 561, in setHeader
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1]     self.headers[string.lower(k)] = v
> 02/07/2002 18:27 [HTTPChannel,28,172.16.10.1] exceptions.AttributeError: Request instance has no attribute 'headers'
> 
> I am using 0.18.0 as seen in debian.
> 
> Blargchoo.
> 
> Otherwise, I can access the server directly just fine. Only
> the upgrade to Apache caused this to happen.
> 
> skreech / Gavin
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python




More information about the Twisted-Python mailing list