--- /dev/null
+--- TwistedWeb2-8.1.0/twisted/web2/channel/http.py 2007-01-02 00:41:33.000000000 +0100
++++ TwistedWeb2-8.1.0/twisted/web2/channel/http.py 2009-01-24 07:21:29.000000000 +0100
+@@ -845,6 +845,9 @@
+ # probably a client abort, so lose the connection.
+ if self.chanRequest:
+ self.transport.loseConnection()
++
++ # Workaround for enigma2's webinterface.
++ self.transport.loseConnection()
+
+ def connectionLost(self, reason):
+ self.factory.outstandingRequests-=1
DEPENDS = "twisted twisted-native"
RDEPENDS = "twisted python-netserver"
-SRC_URI = "http://tmrc.mit.edu/mirror/twisted/Web2/8.1/TwistedWeb2-${PV}.tar.bz2"
+SRC_URI = "http://tmrc.mit.edu/mirror/twisted/Web2/8.1/TwistedWeb2-${PV}.tar.bz2\
+ file://fix-connectionlost.patch;patch=1;pnum=1"
S = "${WORKDIR}/TwistedWeb2-${PV}"
inherit distutils