Project

General

Profile

There is infinite loop at ClientConnectionManager$StoppedHandler?

firstime firstime
Added about 5 years ago

Hello, everyone. I think There is infinite loop at ClientConnectionManager$StoppedHandler, right ? Firstly, stoppedHandler is been called in xmppStreamClosed, then stoppedHandler is been called endlessly in StoppedHandler.timeOutExpired(). Following is my log:

2014-03-17 20:01:54 IOService.readData() INFO: ++++ recv: 218.88.33.64_6186

2014-03-17 20:01:54 ClientConnectionManager.xmppStreamOpened() INFO: ++++ 666: 218.88.33.64_6186

2014-03-17 20:01:54 ClientConnectionManager.xmppStreamOpened() INFO: ++++ 777: 218.88.33.64_6186

2014-03-17 20:01:54 ClientConnectionManager.xmppStreamOpened() INFO: ++++ 888: 218.88.33.64_6186

2014-03-17 20:01:54 IOService.writeData() INFO: ++++ send: 218.88.33.64_6186

2014-03-17 20:02:39 ClientConnectionManager$StartedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=CData size: 36CData size: 15en, SIZE=461, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:03:54 SessionManager$AuthenticationTimer.run() INFO: Authentication timeout expired, closing connection: c2s@hlbgp-160.66call.com/42.51.136.235_5222_218.88.33.64_6186

2014-03-17 20:14:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:15:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:16:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:17:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:18:54 SessionManager.closeConnection() INFO: Trying to find and remove stale XMPPResourceConnection: c2s@hlbgp-160.66call.com/42.51.136.235_5222_218.88.33.64_6186

2014-03-17 20:18:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:19:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:20:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:21:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:22:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:23:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:24:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set

2014-03-17 20:25:55 ClientConnectionManager$StoppedHandler.timeOutExpired() INFO: No response within time limit received for a packet: from=null, to=null, DATA=, SIZE=241, XMLNS=null, PRIORITY=SYSTEM, PERMISSION=NONE, TYPE=set


Replies (2)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 5 years ago

It is not an endless loop, it is just called every minute to close streams which are somehow broken.

Could you tell us which exactly version of Tigase XMPP Server are you using? (ie. 5.2.0-SNAPSHOT from 2013-03-02)

Added by firstime firstime about 5 years ago

Yes, it is called every minute, But, The problem is when it stop ? The log shows that sometimes it never stop. And, if there are many user, then the server maybe process large numbers of the timeout in every sencond, this results in my server overloaded.

My version is 5.1.0, And, i check the last version, the problem keeps.

    (1-2/2)