[oe-commits] Felix Domke : twisted-web2: work around sometimes-not-appearing connectionLost
GIT User account
git at amethyst.openembedded.net
Mon Jan 26 00:31:40 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: 36f9940bb3637b4ac2aa6e3da9cd20088e6d241f
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=36f9940bb3637b4ac2aa6e3da9cd20088e6d241f
Author: Felix Domke <tmbinc at elitedvb.net>
Date: Mon Jan 26 01:29:32 2009 +0100
twisted-web2: work around sometimes-not-appearing connectionLost
---
.../twisted/twisted-web2/fix-connectionlost.patch | 12 ++++++++++++
packages/twisted/twisted-web2_8.1.0.bb | 3 ++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/packages/twisted/twisted-web2/fix-connectionlost.patch b/packages/twisted/twisted-web2/fix-connectionlost.patch
new file mode 100644
index 0000000..fadf734
--- /dev/null
+++ b/packages/twisted/twisted-web2/fix-connectionlost.patch
@@ -0,0 +1,12 @@
+--- 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
diff --git a/packages/twisted/twisted-web2_8.1.0.bb b/packages/twisted/twisted-web2_8.1.0.bb
index f84923c..6230ef2 100644
--- a/packages/twisted/twisted-web2_8.1.0.bb
+++ b/packages/twisted/twisted-web2_8.1.0.bb
@@ -10,7 +10,8 @@ LICENSE = "LGPL"
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
More information about the Openembedded-commits
mailing list