Bug 103790 - After logging off, others still see me as online on MSN, because aspell keep the connection enabled
Summary: After logging off, others still see me as online on MSN, because aspell keep ...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: HI normal
Target Milestone: ---
Assignee: Thiago Macieira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 13:56 UTC by Andrei Slavoiu
Modified: 2011-07-27 13:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2005-04-13 13:56:03 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Unlisted Binary Package
OS:                Linux

I use Kopete to connect to Yahoo. MSN and ICQ, and when I use the global Set Status -> Offline to disconnect from all of them, the MSN account continues to appear online to my contacts. This does not happen all the time, it seems to be random.
Until now I didn't have problems when I set the status to offline on MSN only, but I rarely do this.
I never close Kopete (or my PC) so when this happens I appear online all night.
Comment 1 Olivier Goffart 2005-04-13 14:25:24 UTC
What do you mean by “the MSN account continues to appear online to my contacts” ?

Does that mean they still see you online in their contactlist ?   and how many times after going offline ?
And is the butterfly in the statusbar show you offline ?

If you're showed offline in Kopete, that mean the main socket has been closed, then, the MSN server should notice you are offline in one or two minutes. 
But in theory, we first notify the server we're going offline before disconnecting, so your friend should see you offline immeidatly.

Anyway, People may still send you messages (but without seeing you online). If the chat socket has not been closed.  That's a feature.
Comment 2 Andrei Slavoiu 2005-04-13 15:43:29 UTC
So, I change my global status to offline, Kpete shows me I am offline on all networks, but up to 7 hours later i still appear online to the MSN server and to those that have me in their contact list. People can start a chat with me and try to send me messages, and from what I understood they don't get an error that the message could not be sent. Of course, I don't receive any of that messages.
Comment 3 Olivier Goffart 2005-04-13 16:25:06 UTC
Strange.
does it happen often ?

i cannot reproduce it.
When i go offline, that work, my other client show me as offline.
Comment 4 Andrei Slavoiu 2005-04-13 16:37:25 UTC
It happend at least 5 times since I upgraded to KDE 3.4. The first time Someone told me I was online all night was on April 1st so I took it as a joke, but then someone else told me the same thing several times.
Comment 5 Thiago Macieira 2005-04-14 00:00:49 UTC
I have seen that happen to me. I will make sure the socket is closed next time I see it happen.
Comment 6 Mister Fred 2005-08-11 01:56:09 UTC
Hi,
this bug also happens for me. Something that may be interresting : after disconnecting from kopete, firestarter still shows me 2 open network connections associated with "aspell", and they disapear when I quit kopete.
Comment 7 Mister Fred 2005-08-11 02:01:21 UTC
Oops, forgot to tell : KDE 3.4.2 on Fedora Core 4
If you want more precise bugreport or more tests, please ask... 
Comment 8 Thiago Macieira 2005-08-12 13:22:58 UTC
Yes, I have seen that: spellchecker stays online on MSN. But that also means this is a duplicate (which, of course, I can't find).
Comment 9 Matt Rogers 2005-09-12 14:01:55 UTC
aspell has nothing to do with network connections, so this is not an spellchecker bug, it's just caused by it. (at least AFAIK. We can change it again if somebody can explain to me exactly how aspell, or ispell, can keep a connection open)
Comment 10 Olivier Goffart 2005-09-12 15:08:07 UTC
I don't understand either.  But the fact is that it's aspell which keep the socket open.

In reply to Thiago's comment #8 , this is not a duplicate of another, this is the original,  you only commented it on IRC, not in the report.


We use in MSN  KBufferedSocket::closeNow()  to close the socket.
Let's assing to KNetwork then, i'm sure the bug is not in Kopete,  and even if it is,  i can't solve it until something competent can explain me how this is possible, and what i do wrong.
Comment 11 Thiago Macieira 2005-09-13 03:56:36 UTC
Reassigning to me and raising the priority.

I'll add FD_CLOEXEC to all open sockets. The spellchecker plugins load the programs by way of clone(2) instead of fork(2), which (I hope) explains why the sockets are kept open.
Comment 12 Mister Fred 2005-11-02 01:06:59 UTC
I updated my Fedora Core 4 to KDE 3.4.3 today, with kopete 0.10.4, and the bug seems gone. No more ghost connection visible on firestarter. Thanks a lot !
Comment 13 Dario Andres 2009-07-15 15:40:19 UTC
So, as we now use "libmsn" for managing MSN/WLM protocol connection, should this report be marked as working ?
Have been any other progress in this bug ? Does anyone know ?
Thanks
Comment 14 Christoph Feck 2011-07-27 13:25:12 UTC
Comment #12 suggests the bug is fixed by comment #11. If you still see the bug, please add a comment.