Open Bug 953094 Opened 10 years ago Updated 10 years ago

automatically disconnect on going to sleep or hibernate mode and on switching internet off

Categories

(Other Applications :: ChatZilla, defect)

Other Branch
defect
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: qdinar, Assigned: rginda)

Details

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release)
Build ID: 20131205075310

Steps to reproduce:

press power button of laptop, then after some time, press any key


Actual results:

i see that i have been pinged out from chats


Expected results:

i should have been disconnected from servers or quitted from chats
When going to sleep or hibernate, when switching internet off (by ifdown or similar) does ChatZilla get any warning (and time to send a disconnect message to all servers) before the connection gets cut? If (as I suspect) it doesn't, then it's too late, and the only way the servers will notice that you've stopped reacting is by an unsuccessful ping.
ChatZilla doesn't warn when computer is going to sleep. It may or may not ping timeout after unsleep, and reconnect, which I didn't test.

I think the bug may be in that Firefox should go offline when computer sleeps, in which case ChatZilla disconnects from IRC properly. Whether such issue with Firefox is already known or not (to determine whether this is a duplicate) could be up to someone to check.
(In reply to Gryllida from comment #2)
> ChatZilla doesn't warn when computer is going to sleep. It may or may not
> ping timeout after unsleep, and reconnect, which I didn't test.
> 
> I think the bug may be in that Firefox should go offline when computer
> sleeps, in which case ChatZilla disconnects from IRC properly. Whether such
> issue with Firefox is already known or not (to determine whether this is a
> duplicate) could be up to someone to check.

Tried to find one and didn't; but I'm bad at finding duplicates. However I noticed bug 620472 and bug 502659 which might or might not conflict with what you're proposing. Their technical level is above my head.
I thought I had a bug raised for this, but I can't seem to find anything now.

To the best of my knowledge, sleep / hibernate are transparent to ChatZilla, so we don't have a way to detecting that this has happened or taking specific action as a result of this.

The best approach i've found is to simply type /reconnect-all into ChatZilla after returning from sleep.
You need to log in before you can comment on or make changes to this bug.