Skip to content

eventlet monkey patching on python-xmpp got error. #124

@netmaid

Description

@netmaid

I'm using Ubuntu 14.04.1 LTS and installed ubuntu package recent version of python-xmpp.
And installed eventlet 0.15.1 using pip.

I've tried monkey patching on first line in my pushserver.py.
And later, try to connect xmpp server, then got error like below.

Traceback (most recent call last):
  File "pushserver.py", line 220, in <module>
    inst = PushServer()
  File "pushserver.py", line 55, in __init__
    self.init_gcm_push(max_gcm_conns, gcm_server, gcm_port, gcm_username, gcm_password)
  File "pushserver.py", line 68, in init_gcm_push
    if conn.connect(gcm_server, gcm_port, gcm_username, gcm_password):
  File "/home/ened/workspace/something/gcmpush.py", line 39, in connect
    self.client.connect(server=(self.SERVER, self.PORT), secure=1, use_srv=False)
  File "/usr/lib/python2.7/dist-packages/xmpp/client.py", line 200, in connect
    if not CommonClient.connect(self,server,proxy,secure,use_srv) or secure<>None and not secure: return self.connected
  File "/usr/lib/python2.7/dist-packages/xmpp/client.py", line 178, in connect
    transports.TLS().PlugIn(self,now=1)
  File "/usr/lib/python2.7/dist-packages/xmpp/transports.py", line 274, in PlugIn
    if now: return self._startSSL()
  File "/usr/lib/python2.7/dist-packages/xmpp/transports.py", line 309, in _startSSL
    tcpsock._sslIssuer = tcpsock._sslObj.issuer()
AttributeError: 'GreenSSLSocket' object has no attribute 'issuer'

I knew GreenSSLSocket inherit SSLSocket class in python system.
So, GreenSSLSocket maybe has issuer() function.
I'm digging more and more into the deep source.

Ref: https://launchpad.net/ubuntu/+source/python-xmpp

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions