[Twisted-Python] Twisted 12.0.0 - Facing Issue in SSL/TLS connection setup
Hello All, I am new to Twsited and I am facing SSL/TLS connection setup issue with Twisted 12.0.0. Version of Ubuntu (unstable), I am using is: 12.10 During the SSL/TLS connection setup, there is ClientHello request from the client and for this request there is no response from the server where Twisted 12.0.0 is running. I see only TCP FIN and RST sent by the server end for the ClientHello request. When I checked the syslog, I see below messages. Traceback (most recent call last): : File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 84, in callWithLogger : return callWithContext({"system": lp}, func, *args, **kw) : File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 69, in callWithContext : return context.call({ILogContext: newCtx}, func, *args, **kw) : File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext : return self.currentContext().callWithContext(ctx, func, *args, **kw) : File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext : return func(*args,**kw) : File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 599, in _doReadOrWrite : self._disconnectSelectable(selectable, why, inRead) : File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 266, in _disconnectSelectable : selectable.connectionLost(failure.Failure(why)) : File "/usr/local/lib/python2.7/dist-packages/gnutls/interfaces/twisted/__init__.py", line 328, in connectionLost : tcp.Server.connectionLost(self, reason) : File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 277, in connectionLost : protocol.connectionLost(reason) : File "/usr/lib/python2.7/dist-packages/twisted/web2/channel/http.py", line 853, in connectionLost : self.readConnectionLost() : File "/usr/lib/python2.7/dist-packages/twisted/web2/channel/http.py", line 842, in readConnectionLost : self.transport.loseConnection() : File "/usr/local/lib/python2.7/dist-packages/gnutls/interfaces/twisted/__init__.py", line 322, in loseConnection : tcp.Server.loseConnection(self, reason) : TypeError: loseConnection() takes exactly 1 argument (2 given) Anyone else has faced this issue, earlier? I am not having any clue like what went wrong. Have I missed any of the dependent packages required for Twisted 12.0.0? Please help me to come out of this issue. Best Regards, bgurup
On 07/17/2012 06:42 AM, Guru Prasad wrote:
: File "/usr/local/lib/python2.7/dist-packages/gnutls/interfaces/twisted/__init__.py", line 322, in loseConnection : tcp.Server.loseConnection(self, reason) : TypeError: loseConnection() takes exactly 1 argument (2 given)
Anyone else has faced this issue, earlier? This is a bug in the gnutls package you are using, which appears to have relied on a private implementation detail of Twisted. So this is a bug in gnutls package, not Twisted, and you should file a report with them.
In the interim until they fix it, you might want to try Twisted's built-in SSL support, as documented here: twistedmatrix.com/documents/current/core/howto/ssl.html
participants (2)
-
Guru Prasad -
Itamar Turner-Trauring