Code: Select all
04 Aug 2018 | 10:00:03,533 | WARN | SFSWorker:Sys:9 | v2.protocol.SFSIoHandler | | Discard UDP packet from xxx.xxx.xxx.121:13771, reason: Sender IP doesn't match TCP session address: xxx.xxx.xxx.121 != xxx.xxx.xxx.40
Code: Select all
04 Aug 2018 | 10:03:38,546 | WARN | SFSWorker:Sys:12 | v2.protocol.SFSIoHandler | | Discard UDP packet from xx.xx.xxx.40:27134, reason: Sender UDP Port doesn't match current session port: 27134 != 27146
Code: Select all
04 Aug 2018 | 10:00:03,590 | WARN | SocketWriter-1 | bitswarm.core.SocketWriter | | java.lang.IllegalStateException: UDP Packet cannot be sent to: { Id: 1242520, Type: DEFAULT, Logged: Yes, IP: xxx.xx.xxx.18:40370 }, no DatagramChannel was ever set!
com.smartfoxserver.bitswarm.core.SocketWriter.udpSend(SocketWriter.java:463)
com.smartfoxserver.bitswarm.core.SocketWriter.processRegularSession(SocketWriter.java:290)
com.smartfoxserver.bitswarm.core.SocketWriter.processSessionQueue(SocketWriter.java:217)
com.smartfoxserver.bitswarm.core.SocketWriter.run(SocketWriter.java:193)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
Since the issue is likely caused by the user's device or network, we know there probably isn't anything that can be done to fix it from the server side. However, is there any way we can disconnect the user when any of the above errors occurs? This would solve our issue as it only occurs to a small amount of players and it has game-breaking effects.