HTTP proxy hanging in Twisted 9.0
|Reported by:||darkporter||Owned by:||jml|
branch-diff, diff-cov, branch-cov, buildbot
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.
Change History (12)
comment:10 Changed 6 years ago by jml
- Keywords review added; http proxy hanging removed
- Owner jknight deleted