Closed
Bug 1201576
Opened 9 years ago
Closed 9 years ago
Intermittent double reconnects on waking from hibernation
Categories
(Chat Core :: IRC, defect)
Chat Core
IRC
Tracking
(Not tracked)
RESOLVED
FIXED
Instantbird 43
People
(Reporter: aleth, Assigned: aleth)
Details
Attachments
(1 file)
1.96 KB,
patch
|
clokep
:
review+
|
Details | Diff | Splinter Review |
I've only seen this behaviour for IRC.
Assignee | ||
Comment 1•9 years ago
|
||
This happens when disconnect() is called on wake before the wake notification observer calls gotDisconnected() to timeout the dead connection. disconnect() tries to send QUIT and sets a quit timer. By the time the quit timer fires, the account is already reconnected, and so gets disconnected again.
Attachment #8656657 -
Flags: review?(clokep)
Comment 2•9 years ago
|
||
Comment on attachment 8656657 [details] [diff] [review]
clearquittimer.diff
Review of attachment 8656657 [details] [diff] [review]:
-----------------------------------------------------------------
::: chat/protocols/irc/ircBase.jsm
@@ -169,5 @@
> else {
> // We received an ERROR message when expecting it (i.e. we've sent a
> - // QUIT command).
> - clearTimeout(this._quitTimer);
> - delete this._quitTimer;
Why adding these here too? You call gotDisconnected right after this.
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Patrick Cloke [:clokep] from comment #2)
> > - clearTimeout(this._quitTimer);
> > - delete this._quitTimer;
>
> Why adding these here too? You call gotDisconnected right after this.
If you look closely, you'll see it's a -, not a + in the left hand column ;)
Comment 4•9 years ago
|
||
Comment on attachment 8656657 [details] [diff] [review]
clearquittimer.diff
Review of attachment 8656657 [details] [diff] [review]:
-----------------------------------------------------------------
Sorry, I read a diff backward.
This looks good!
Attachment #8656657 -
Flags: review?(clokep) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 5•9 years ago
|
||
https://hg.mozilla.org/comm-central/rev/4daeea0130fbe7385754aa7a36c8f7b0189fb800
Bug 1201576 - Make sure the quit timer is reset on disconnection to avoid double reconnects. r=clokep
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → aleth
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Instantbird 43
You need to log in
before you can comment on or make changes to this bug.
Description
•