Yann Leboulanger pushed to branch master at gajim / python-nbxmpp
Commits:
650450d4 by Yann Leboulanger at 2017-12-22T12:45:47+01:00
prevent TB loop and 100% CPU on connection cut
- - - - -
1 changed file:
- nbxmpp/transports_nb.py
Changes:
=====================================
nbxmpp/transports_nb.py
=====================================
--- a/nbxmpp/transports_nb.py
+++ b/nbxmpp/transports_nb.py
@@ -609,13 +609,13 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
try:
# get as many bites, as possible, but not more than RECV_BUFSIZE
received = self._recv(RECV_BUFSIZE)
- except socket.error as e:
- log.info("_do_receive: got %s:" % received, exc_info=True)
except tls_nb.SSLWrapper.Error as e:
log.info("_do_receive, caught SSL error, got %s:" % received,
exc_info=True)
errnum, errstr = e.errno,\
decode_py2(e.strerror, locale.getpreferredencoding())
+ except socket.error as e:
+ log.info("_do_receive: got %s:" % received, exc_info=True)
if received == '':
errstr = 'zero bytes on recv'
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/650450d448f2828af3717bc544…
---
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/650450d448f2828af3717bc544…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
65bc9659 by Marc Schink at 2017-12-19T22:23:27+01:00
dialogs: Use get_widget_for_response() to access buttons
The get_action_area() API is deprecated and under some circumstances
the wrong button gets accessed.
- - - - -
ed0e2dd8 by Philipp Hörist at 2017-12-20T20:45:48+01:00
Merge branch 'plain_connection_dialog_fix' into 'master'
Dialogs: Use get_widget_for_response() to access buttons
See merge request gajim/gajim!178
- - - - -
1 changed file:
- gajim/dialogs.py
Changes:
=====================================
gajim/dialogs.py
=====================================
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -1722,7 +1722,7 @@ class ConfirmationDialogCheck(ConfirmationDialog):
self.set_default_response(Gtk.ResponseType.OK)
- ok_button = self.get_action_area().get_children()[0] # right to left
+ ok_button = self.get_widget_for_response(Gtk.ResponseType.OK)
ok_button.grab_focus()
self.checkbutton = Gtk.CheckButton.new_with_mnemonic(checktext)
@@ -1777,7 +1777,7 @@ class ConfirmationDialogDoubleCheck(ConfirmationDialog):
self.set_default_response(Gtk.ResponseType.OK)
- ok_button = self.get_action_area().get_children()[0] # right to left
+ ok_button = self.get_widget_for_response(Gtk.ResponseType.OK)
ok_button.grab_focus()
vbox = self.get_content_area()
@@ -1847,7 +1847,7 @@ class PlainConnectionDialog(ConfirmationDialogDoubleCheck):
ConfirmationDialogDoubleCheck.__init__(self, pritext, sectext,
checktext1, checktext2, tooltip1=tooltip1, on_response_ok=on_ok,
on_response_cancel=on_cancel, is_modal=False)
- self.ok_button = self.get_action_area().get_children()[0] # right to left
+ self.ok_button = self.get_widget_for_response(Gtk.ResponseType.OK)
self.ok_button.set_sensitive(False)
self.checkbutton1.connect('clicked', self.on_checkbutton_clicked)
self.set_title(_('Insecure connection'))
@@ -1875,7 +1875,7 @@ class ConfirmationDialogDoubleRadio(ConfirmationDialog):
self.set_default_response(Gtk.ResponseType.OK)
- ok_button = self.get_action_area().get_children()[0] # right to left
+ ok_button = self.get_widget_for_response(Gtk.ResponseType.OK)
ok_button.grab_focus()
vbox = self.get_content_area()
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/e7df2d93b6bb10cab7ec1558f0782c670…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/e7df2d93b6bb10cab7ec1558f0782c670…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
e7df2d93 by Philipp Hörist at 2017-12-19T21:12:07+01:00
HistorySync: Fix first time sync
Fixes #8810
Also remove mam_start_date migration.
mam_start_date didnt exist in Gajim 0.16.x and it doesnt hurt
if people who used the dev version download some extra messages.
Our deduplication algorithm should take care of it.
- - - - -
1 changed file:
- gajim/history_sync.py
Changes:
=====================================
gajim/history_sync.py
=====================================
--- a/gajim/history_sync.py
+++ b/gajim/history_sync.py
@@ -58,16 +58,13 @@ class HistorySyncAssistant(Gtk.Assistant):
self.event_id = id(self)
own_jid = self.con.get_own_jid().getStripped()
- archive = app.logger.get_archive_timestamp(own_jid)
- if archive is not None:
- mam_start = float(archive.oldest_mam_timestamp)
- else:
- # Migration from old config value
- mam_start = app.config.get_per(
- 'accounts', account, 'mam_start_date')
+ mam_start = ArchiveState.NEVER
+ archive = app.logger.get_archive_timestamp(own_jid)
+ if archive is not None and archive.oldest_mam_timestamp is not None:
+ mam_start = int(float(archive.oldest_mam_timestamp))
- if not mam_start or mam_start == ArchiveState.NEVER:
+ if mam_start == ArchiveState.NEVER:
self.current_start = self.now
elif mam_start == ArchiveState.ALL:
self.current_start = datetime.utcfromtimestamp(0)
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e7df2d93b6bb10cab7ec1558f0782c6709…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/e7df2d93b6bb10cab7ec1558f0782c6709…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
0ffd7b69 by André Apitzsch at 2017-12-18T22:16:22+01:00
Zeroconf: Fix get_own_jid()
- - - - -
5a33a59e by Yann Leboulanger at 2017-12-18T22:19:21+01:00
Merge branch 'hostname' into 'master'
Zeroconf: Fix get_own_jid()
See merge request gajim/gajim!173
- - - - -
1 changed file:
- gajim/common/zeroconf/connection_zeroconf.py
Changes:
=====================================
gajim/common/zeroconf/connection_zeroconf.py
=====================================
--- a/gajim/common/zeroconf/connection_zeroconf.py
+++ b/gajim/common/zeroconf/connection_zeroconf.py
@@ -125,7 +125,7 @@ class ConnectionZeroconf(CommonConnection, ConnectionHandlersZeroconf):
return jid
def get_own_jid(self):
- return nbxmpp.JID(self.username + '@' + self.hostname)
+ return nbxmpp.JID(self.username + '@' + self.host)
def reconnect(self):
# Do not try to reco while we are already trying
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/53a92bdee814751dcddbb67dbf122b20e…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/53a92bdee814751dcddbb67dbf122b20e…
You're receiving this email because of your account on dev.gajim.org.