link-local xmpp (zeroconf) failing IPv6
Software versions
OS version: Archlinux Gajim version: hg revision c040f230584f
Bug description
I'm using link-local xmpp (zeroconf) in a LAN (same subnet, only Switches in between) between my pc (as above) and an Ubuntu 14.04 box running pidgin. I can see messages from the other side just fine. If I send messages, I cannot see them, even though the other side receives them. The messages don't appear in my chat window neither in chat logs.
This are probably multiple issues: While reproducing the bug, the other side didn't see my message, either, and I got a message in my chat window: Connection to host could not be established. Die Nachricht konnte nicht gesendet werden.
Backtrace:
01.12.2014 14:26:41 (E) gajim.c.z.client_zeroconf self._server type: \<type 'tuple'> str: ('fe80::4216:7eff:feac:d3f3', 5298, 0, 0) repr: ('fe80::4216:7eff:feac:d3f3', 5298, 0, 0)
01.12.2014 14:26:41 (E) gajim.c.z.client_zeroconf ee type: \<class 'socket.error'> str: [Errno 22] Das Argument ist ungültig repr: error(22, 'Das Argument ist ung\xc3\xbcltig')
01.12.2014 14:26:41 (E) gajim.c.z.client_zeroconf Could not connect to fe80::4216:7eff:feac:d3f3: 22 [Das Argument ist ungültig]
01.12.2014 14:26:41 (E) gajim.c.z.client_zeroconf Connection failure to fe80::4216:7eff:feac:d3f3
Traceback (most recent call last):
File "/usr/share/gajim/src/common/zeroconf/client_zeroconf.py", line 457, in do_connect
self._sock.connect(self._server)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 22] Das Argument ist ungültig
This is the result of patching gajim/src/common/zeroconf/client_zeroconf.py to log in P2PConnection.do_connect(self)
the variables self._server
(just before connect()
) and ee
(in the surrounding exception handler).
See also: #7110 (closed)