|
From: gu h. <hai...@ho...> - 2007-09-05 06:54:52
|
hi all,
Here is my situation.During the logout process, the initiator's Session
generateLogout() is first called, in the method
sendRaw(logout, 0);
state.setLogoutSent(true);
After send logout, it will set the state. But before set the state, I
reveive the logout from the acceptor. So the session will take the logout
as a logout request not as a logout a logout response, and it will send a
logout again. Obviously it's wrong. Noticing this strange behavoir, my
solution is
state.setLogoutSent(true);
sendRaw(logout, 0);
and this works well.
Has anyone have the same problem? Because I am still not believe that
logout arrives before state.setLogoutSent(true);.
regards,
mike
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
|