[Bug 37844] Don't try to reconnect an account over and over for certain errors
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jun 16 12:11:17 CEST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=37844
--- Comment #7 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2011-06-16 03:11:14 PDT ---
Review of attachment 48028:
--> (https://bugs.freedesktop.org/review?bug=37844&attachment=48028)
::: src/mcd-connection.c
@@ +1217,3 @@
+ /* possibly a few others (notably, all the encryption
+ * things), but the others are hopefully not
+ * generically mapped to NETWORK_ERROR anyway */
Er, that comment was meant to be a note to you, not something you should commit
:-)
Either replace it with more error codes (look at the list in devhelp or
something and think about whether each one would be helped by reconnection or
not), or check that for all our other error codes, believing the status reason
would be OK.
@@ +1241,3 @@
+ {
+ case TP_CONNECTION_STATUS_REASON_NETWORK_ERROR:
+ case TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED:
I'm not so sure that NONE_SPECIFIED should trigger reconnection: if the string
error name was not understood and the status reason is NONE_SPECIFIED, that
tells us nothing.
The comment suggests that NONE_SPECIFIED was only there because it's what a
crashing connection manager would produce, but TP_DBUS_ERROR_NAME_OWNER_LOST
covers that case now, so maybe we don't need it?
@@ +1245,3 @@
+ return TRUE;
+ default:
+ break;
Useless default case that does nothing, can hopefully be removed?
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list