Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.3
-
Fix Version/s: 1.5.2
-
Component/s: Networking
-
Labels:None
-
Environment:Windows
Description
On the StartTime of session new Session is created and suppried to Session as Responder.
("sessionCreated" function in InitiatorIoHandler class)
But, this Session is reseted and "Logout" message is sent to acceptor on "next()" function in Session class.
This is caused by the management of session state in Session class.
The session state ( especially the session creation time) is reseted every 1sec during non Session time.
But on the new Session is created and suppried as Responder,
the session creation time is not updated and the new Session is treaed to not valid Session.
It should update session state (session creation time) when new Session is suppried.
/**
- Registers a responder with the session. This is used by the acceptor and
- initiator implementations.
* - @param responder a responder implementation
*/
public void setResponder(Responder responder) {
synchronized (responderSync)Unknown macro: { this.responder = responder; if (responder != null) { // reset session state here state.reset(); // force to verify session time lastSessionTimeCheck = 0; stateListener.onConnect(); } else { stateListener.onDisconnect(); } }}
We could solve this problem by this but, I'm not sure what' there side effect...