zf8848 / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

How to find connectivity to talk server is down #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login to talk.google.com port 5222
2. Internet connectivity is down. Libjingle will not get any notification. 
3. According to the Wiki, tried sending xmpp_client->SendRaw() with a space. 
That will also not return any notification saying connectivity is down.

What is the expected output? What do you see instead?
OnStateChange with STATE_CLOSED event should be triggered.

What version of the product are you using? On what operating system?
Version 0.5.1

Please provide any additional information below.

Original issue reported on code.google.com by saru...@gmail.com on 17 Jan 2011 at 11:49

GoogleCodeExporter commented 9 years ago
In basicportallocator.cc (line333). The libjingle checks if network is 
available before issuing calls.
Does it answer your question?

Original comment by jun...@google.com on 25 Jan 2011 at 10:24

GoogleCodeExporter commented 9 years ago
Does this error get signaled to the application? Do we need to connect to any 
signal to get this error?

basicportallocator.cc is for p2p connection. what when application is not using 
p2p connection. Currently I am refering pcp sample and my main_thread->Run() is 
not exiting if the network connection is lost. 

Original comment by saru...@gmail.com on 26 Jan 2011 at 3:43

GoogleCodeExporter commented 9 years ago
I can get buzz::XmppEngine::STATE_CLOSED in case of xmpp connection breaks.

Original comment by greatfoolbear on 26 Jan 2011 at 4:37

GoogleCodeExporter commented 9 years ago
Are you using posix or windows socket? I tested with windows socket and it 
worked for me but not on posix.

Original comment by saru...@gmail.com on 29 Jan 2011 at 7:42

GoogleCodeExporter commented 9 years ago
I test it in Windows.

Original comment by greatfoolbear on 30 Jan 2011 at 2:23

GoogleCodeExporter commented 9 years ago
Google Talk XMPP server also support XEP-0199 
(http://xmpp.org/extensions/xep-0199.html)
You can implement a Ping check to detect the connectivity.

Original comment by jun...@google.com on 29 Jun 2011 at 10:13