Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Is it a Bug ?

$
0
0

Today i upgraded from 3.x to 4.0.3 aSmack and found one issue not sure if its a Bug or I am doiing something wrong.

 

 

         gconfig = new ConnectionConfiguration(SERVER_IP,SERVER_PORT,SERVER_HOST);

         gconfig.setSecurityMode(SecurityMode.disabled)

          gconfig.setReconnectionAllowed(true);

          gconfig.setDebuggerEnabled(true);

          SmackConfiguration.setDefaultPacketReplyTimeout(10000);

          SmackConfiguration.DEBUG_ENABLED=true;

 

try {

                xmppConnectionHandle = new XMPPTCPConnection(Constants.gconfig);

                xmppConnectionHandle.connect();

                connectionState = true;

                FileLog.b(log_tag, xmppConnectionHandle.isConnected());

 

      }

       catch (Exception e) {

                FileLog.e(log_tag, e);

                connectionState=false;

            }

 

 

On this code i just changed  xmppConnectionHandle = new XMPPConnection(Constants.gconfig);  to   xmppConnectionHandle = new XMPPTCPConnection(Constants.gconfig);  after the migration to 4.0.3

 

Once after this if i am idle for 60 secs and then i try to check for support registration and try to register  this is when i get the no server response .. it send the packet to server but it never reaches to the server but isConnected retruns always true ? Any ideas why ?

 

Previously when its connected it started sending pings to server but now it doesnt send automatically i used pingmanger but it works only if the user logins and is authenticated else it doesnt send.

 

Is it a bug  or i am doing something wrong ?

 

Thanks

Jeet


Viewing all articles
Browse latest Browse all 10742

Trending Articles