Closed Bug 1201576 Opened 9 years ago Closed 9 years ago

Intermittent double reconnects on waking from hibernation

Categories

(Chat Core :: IRC, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Instantbird 43

People

(Reporter: aleth, Assigned: aleth)

Details

Attachments

(1 file)

I've only seen this behaviour for IRC.
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 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.
(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 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+
Keywords: checkin-needed
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: 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.

Attachment

General

Creator:
Created:
Updated:
Size: