GoogleCodeArchive / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Disconnect() problem #313

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Sign in successfully
2. Wait 10+ seconds (better 20+ if you want to make sure) 
3. Use (instance).Disconnect() to disconnect

What is the expected output? What do you see instead?
Few rare times the Disconnect() disconnects but most of the times doesn't.
If I use Disconnect() just 2 or 3 seconds after sign in it disconnects 
successfully.

What version of the product are you using? (MSNPSharp, OS, Mono etc.)
MSNPSharp 5.0 stable

Is your code check out from GIT or download from our download site?
Downloads section

Please provide any additional information below:

Original issue reported on code.google.com by luisnr...@gmail.com on 6 Feb 2012 at 1:22

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 6 Feb 2012 at 8:27

GoogleCodeExporter commented 9 years ago
Did you try with the example account in example client?

Original comment by freezing...@gmail.com on 6 Feb 2012 at 8:33

GoogleCodeExporter commented 9 years ago
With the example client happens 2 diferent things. If I change status to 
offline the client goes back to login screen and doesn't disconnect just like I 
said but if I use signout from here or signout from everywhere it disconnects 
just fine with the tries I've made.
I didn't see more than the basic in the example client but I wonder what can be 
different from those 2 logout methods. Aren't they both supposed to do the same?

Original comment by luisnr...@gmail.com on 6 Feb 2012 at 10:31

GoogleCodeExporter commented 9 years ago
I see the signout from here or everywhere uses the signout method instead of 
Disconnect(). Anyway shouldn't Disconnect() signout too?

Original comment by luisnr...@gmail.com on 6 Feb 2012 at 10:52

GoogleCodeExporter commented 9 years ago
You must wait 3-5 seconds after disconnect. New library uses http polling 
method.

Original comment by hepha...@gmail.com on 7 Feb 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Sorry, maybe I wasn't clear enough. I was trying to say that it really doesn't 
disconnect and not that there is a delay. With the signout method it takes that 
3-5 sec delay you are talking about, ok no problem. But with Disconnect() it 
disconnects only after 2 minutes. I assume that happens due to the lack of 
keepalive signal like it happens with a internet disconnection.

Original comment by luisnr...@gmail.com on 7 Feb 2012 at 2:41

GoogleCodeExporter commented 9 years ago
Use the stable version. This problem fixed in 50_STABLE.

git clone http://code.google.com/p/msnp-sharp/ -b MSNPSHARP_50_STABLE

Original comment by hepha...@gmail.com on 7 Feb 2012 at 4:32

GoogleCodeExporter commented 9 years ago
Pang,

Could you release the v5.0.1.10021 after convert the project to VS 2010? 

Original comment by hepha...@gmail.com on 7 Feb 2012 at 4:37

GoogleCodeExporter commented 9 years ago
Sorry I said 5.0 stable in the issue report but from the downloads section it's 
called release hehehe

Original comment by luisnr...@gmail.com on 7 Feb 2012 at 5:24

GoogleCodeExporter commented 9 years ago
The thing you got in download is not stable version. The stable version is 
always in to repository.

Original comment by freezing...@gmail.com on 8 Feb 2012 at 1:34