id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	branch	branch_author	launchpad_bug
4179	HTTP proxy hanging in Twisted 9.0	darkporter	jml	"I have an HTTP proxy that uses twisted.web.proxy, which works fine in Twisted 8.2, but after upgrading to Twisted 9.0 I noticed page loads are hanging. The pages appear to fully load, but the browser spinner just keeps spinning forever.

So I grabbed this trivial proxy example from http://wiki.python.org/moin/Twisted-Examples:

{{{
from twisted.web import proxy, http
from twisted.internet import reactor
from twisted.python import log
import sys
log.startLogging(sys.stdout)
 
class ProxyFactory(http.HTTPFactory):
    protocol = proxy.Proxy
 
reactor.listenTCP(8080, ProxyFactory())
reactor.run()
}}}

And noticed the same thing. I set my proxy settings in Firefox to localhost:8080, load up a page (any page seems to do it, but daringfireball.net does for sure) and it loads, then I hit reload a couple times, and the refresh just spins forever. I tried that exact same code in 8.2 and 9.0, and it's fine in 8.2 but not in 9.0.

My environment is Python 2.6 on Mac OS X.
"	regression	closed	high	Twisted-10.0	web	fixed		coolcucumber@…	branches/proxy-headers-4179	jml	
