Message from discussion
ssl socket error while receiving data
Received: by 10.229.228.132 with SMTP id je4mr28374qcb.10.1287807321758;
Fri, 22 Oct 2010 21:15:21 -0700 (PDT)
X-BeenThere: gevent@googlegroups.com
Received: by 10.229.56.161 with SMTP id y33ls1571086qcg.1.p; Fri, 22 Oct 2010
21:15:21 -0700 (PDT)
Received: by 10.229.181.69 with SMTP id bx5mr470521qcb.11.1287807321091;
Fri, 22 Oct 2010 21:15:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.153.12 with SMTP id a12mr55844ane.53.1287773789864; Fri,
22 Oct 2010 11:56:29 -0700 (PDT)
Received: by l17g2000yqe.googlegroups.com with HTTP; Fri, 22 Oct 2010 11:56:29
-0700 (PDT)
Date: Fri, 22 Oct 2010 11:56:29 -0700 (PDT)
X-IP: 94.27.99.1
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11,gzip(gfe)
Message-ID: <dd2d25e9-c467-426a-ab3d-209d6df122ed@l17g2000yqe.googlegroups.com>
Subject: ssl socket error while receiving data
From: Kittle <kit...@humgat.org>
To: "gevent: coroutine-based Python network library" <gevent@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello.
With "from gevent import monkey; monkey.patch_all()" script fall:
"DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-
sasl" mechanism="PLAIN">YWFhcGluQGdtYWlsLmNvbBBhYWFwaW4AYUdSZWJ1a2E=</
auth>
DEBUG: socket error Socket error while receiving data
DEBUG: socket error Socket operation failed" .
If commented - work.
Without ssl(to local ejabberd) with monkey.path_all() - work.
[------------------------------]
#!/bin/env python
#from gevent import monkey; monkey.patch_all()
import xmpp
username = 'XXX' # gmail login, not email
passwd = 'YYY'
to='...@gmail.com' # jid
msg='hello :)'
client = xmpp.Client('gmail.com', debug=['gen_auth', 'SASL_auth',
'bind', 'socket' ])
client.connect(server=('talk.google.com',5223))
assert client.auth(username, passwd)
client.sendInitPresence()
message = xmpp.Message(to, msg)
message.setAttr('type', 'chat')
client.send(message)
[------------------------------]
python2.6 or 2.7 , xmpppy-0.5.0rc1
Any idea ?
Thank you.