When I tested it, I found that the message package received by openfire, from will be reset to the address of the session. This is normal under normal circumstances. But it seems that the network is not good, or flashing. The address of the session will become wrong. Our business logic is to take the username from from and to. So how should I avoid this wrong session?
session:org.jivesoftware.openfire.session.LocalClientSession@6ce3a12f status: 3 address: username__resource@ip/76i28uw9383 id: 2b7z7u2198 presence:
session:org.jivesoftware.openfire.session.LocalClientSession@2e111ce9 status: 1 address: ip/76i28uw9383 id: 1u1myukuo7 presence: