我试图执行的GCM服务器的googls例如为discribed这里: Writing the Server CodeGCM XMPP服务器认证
,我发现了以下错误:
DEBUG: socket sent <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">...</auth>
DEBUG: socket error Socket error while receiving data
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/xmpp/transports.py", line 146, in receive
try: received = self._recv(BUFLEN)
SSLError: [Errno 8] _ssl.c:1325: EOF occurred in violation of protocol
DEBUG: socket error Socket operation failed
Authentication failed!
我的服务器是在NAT后面和防火墙。我已经打开了一个出站连接到ANY的规则,并转发了端口5228-5230,如here所述。不过,由于资源问题,我不能转发所有端口到服务器,无论是80或443
任何想法是什么造成这个错误,我可以解决这个问题?
谢谢。
经常xmpppy的SSL错误是由xmpppy真的很旧的事实引起的。 http://stackoverflow.com/a/37017182/267540 – e4c5