Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e9038f22 by André Apitzsch at 2017-05-16T23:51:12+02:00
Zeroconf: SSL_ERROR_* has been moved to ssl module
fixes #8625
- - - - -
381b9b0a by Philipp Hörist at 2017-05-17T13:21:47+02:00
Merge branch 'SSL_ERROR' into 'master'
Zeroconf: SSL_ERROR_* has been moved to ssl module
Closes #8625
See merge request !100
- - - - -
1 changed file:
- src/common/zeroconf/client_zeroconf.py
Changes:
=====================================
src/common/zeroconf/client_zeroconf.py
=====================================
--- a/src/common/zeroconf/client_zeroconf.py
+++ b/src/common/zeroconf/client_zeroconf.py
@@ -27,6 +27,7 @@ from common.zeroconf import zeroconf
from nbxmpp.protocol import *
import socket
+import ssl
import errno
import sys
import os
@@ -515,14 +516,14 @@ class P2PConnection(IdleObject, PlugIn):
except Exception as e:
errnum = e.errno
# "received" will be empty anyhow
- if errnum == socket.SSL_ERROR_WANT_READ:
+ if errnum == ssl.SSL_ERROR_WANT_READ:
pass
elif errnum in [errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN]:
self.pollend()
# don't proccess result, cas it will raise error
return
elif not received :
- if errnum != socket.SSL_ERROR_EOF:
+ if errnum != ssl.SSL_ERROR_EOF:
# 8 EOF occurred in violation of protocol
self.pollend()
if self.state >= 0:
@@ -583,7 +584,7 @@ class P2PConnection(IdleObject, PlugIn):
self._on_send()
except socket.error as e:
- if e.errno == socket.SSL_ERROR_WANT_WRITE:
+ if e.errno == ssl.SSL_ERROR_WANT_WRITE:
return True
if self.state < 0:
self.disconnect()
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/a0a27d9cb259f5e1515e1cf51050dfec6…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
37a31370 by Philipp Hörist at 2017-05-06T11:29:23+02:00
Fix exception when minimizing a groupchat
- - - - -
1 changed file:
- src/chat_control_base.py
Changes:
=====================================
src/chat_control_base.py
=====================================
--- a/src/chat_control_base.py
+++ b/src/chat_control_base.py
@@ -804,6 +804,9 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
"""
It gets called no matter if it is the active window or not
"""
+ if not self.parent_win:
+ # when a groupchat is minimized there is no parent window
+ return
if self.parent_win.get_active_jid() == self.contact.jid:
# if window is the active one, change vars assisting chatstate
self.mouse_over_in_last_5_secs = True
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/37a313701ca9224c266e1bf6f540944e52…
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
61c2259a by Marc Schink at 2017-05-03T10:01:49+02:00
Use account hostname for STUN server discovery
Use the account hostname instead of the target hostname of the
_xmpp-client._tcp SRV resource record for STUN server discovery.
Otherwise, discovery fails if both hostnames are different.
- - - - -
6e8e5aec by Philipp Hörist at 2017-05-05T22:42:47+02:00
Merge branch 'stun_discovery' into 'master'
Use account hostname for STUN server discovery
See merge request !93
- - - - -
1 changed file:
- src/common/connection.py
Changes:
=====================================
src/common/connection.py
=====================================
--- a/src/common/connection.py
+++ b/src/common/connection.py
@@ -1917,8 +1917,9 @@ class Connection(CommonConnection, ConnectionHandlers):
self.sm.resuming = False # back to previous state
# Discover Stun server(s)
- gajim.resolver.resolve('_stun._udp.' + helpers.idn_to_ascii(
- self.connected_hostname), self._on_stun_resolved)
+ hostname = gajim.config.get_per('accounts', self.name, 'hostname')
+ gajim.resolver.resolve('_stun._udp.' + helpers.idn_to_ascii(hostname),
+ self._on_stun_resolved)
def _on_stun_resolved(self, host, result_array):
if len(result_array) != 0:
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/bc504f90b1c4cfde3ebef4a822fa00a66…