After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549606 - potential data loss when computer is suspended
potential data loss when computer is suspended
Status: RESOLVED NOTGNOME
Product: empathy
Classification: Core
Component: General
unspecified
Other Linux
: High critical
: ---
Assigned To: empathy-maint
empathy-maint
: 589042 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-08-27 17:35 UTC by Dafydd Harries
Modified: 2011-09-29 07:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dafydd Harries 2008-08-27 17:35:17 UTC
There are similar problems to #504266 when suspending. For instance, with a Jabber account, messages can get lost because my TCP connection to the Jabber server hasn't timed out. The Jabber server still thinks I'm connected, so doesn't store messages for when I next connect.

If there's some way of disconnecting connections before suspend, we should definitely do that.
Comment 1 Guillaume Desmottes 2008-09-04 20:47:08 UTC
Do you know if GnomePowerManager sends a signal before suspend? If yes I guess Empathy should just have to catch it and change user's status to offline.
Comment 2 Xavier Claessens 2008-09-07 17:04:31 UTC
I'm surprised XMPP don't have an ACK system for messages. Too bad!

I agree we could investigate if there is some DBus signal to disconnect all accounts before suspend the computer.
Comment 3 Laurent Bigonville 2008-10-24 10:39:57 UTC
This is not possible to be done through network-manager?
Comment 4 Peter Janak 2009-02-20 18:49:33 UTC
I think it is, but not everyone uses network-manager (me for instance). I would think using DBUS would be better just because more people will be using it.
Comment 5 Jonny Lamb 2009-03-06 10:42:02 UTC
Dafydd, were you using NetworkManager when it stayed connected during suspend?
Comment 6 Dafydd Harries 2009-03-07 10:37:10 UTC
(In reply to comment #5)
> Dafydd, were you using NetworkManager when it stayed connected during suspend?

I'm describing a hypothetical situation as opposed to something that happened to me. I don't think NM can make a difference either way: Gabble isn't closing the TCP socket whether the interface comes down or not, and in my understanding bringing the interface down doesn't close any TCP connections active on that interface.
Comment 7 Guillaume Desmottes 2009-03-20 11:22:43 UTC
MC is suppose is to disconnect all CM's when network is disconnected, isn'it?

So, does NetworkManager properly shutdown the network when we suspend?
Comment 8 Jonny Lamb 2009-07-20 12:44:43 UTC
*** Bug 589042 has been marked as a duplicate of this bug. ***
Comment 9 Sumana Harihareswara 2009-11-04 00:12:50 UTC
I can reproduce this with Empathy 2.2792, GNOME Version: 2.26.1, Ubuntu 9.04.

Repro steps:

1. Suspend
2. Have a confederate send me messages (via AIM & GTalk)
3. Wake computer up again

Desired behavior:
Messages await me when Empathy gets online again

Actual behavior:
Messages disappear into the void

What logs should I give -- Empathy, gabble, haze, other?
Comment 10 Guillaume Desmottes 2010-03-17 15:01:38 UTC
I just tried and when suspending our status is set to away (because gnome-screen-saver is running) but connections are not properly disconnected.

Richard: Does gnome-power-manager have a mechanism to notify apps when the system is about to suspend? If no, could we imagine having one?
Comment 11 Richard Hughes 2010-03-17 15:44:22 UTC
(In reply to comment #10)
> Richard: Does gnome-power-manager have a mechanism to notify apps when the
> system is about to suspend? If no, could we imagine having one?

g-p-m doesn't, but UPower does. Just watch for the AboutToSleep() signal on org.freedesktop.UPower and you've got one second to do anything you like.
Comment 12 Guillaume Desmottes 2010-03-17 16:19:57 UTC
Great; thanks for the info. Let's do that in 2.31 then.
Comment 13 Guillaume Desmottes 2010-06-03 14:53:11 UTC
Plan is now to do that in mission-control instead of Empathy : https://bugs.freedesktop.org/show_bug.cgi?id=28370
Comment 14 Guillaume Desmottes 2011-09-29 07:57:57 UTC
You'll be happy to know that we are, finally, about the fix this bug in MC. :)