But when a user doesn't send a UDP packet to the server for a consecutive 30 seconds and after that tries to send a packet over UDP, the server won't process the message:
Discard UDP packet from ..., reason: Sender UDP Port doesn't match current session port: 63836 != 30820
I've looked into the iOS API for a property to know if the UDP socket is no longer valid, but that doesn't seem to be available. Otherwise we could re-initialize the UDP protocol.
Edit: The TCP socket keeps working fine.
Thoughts?
We are using the iOS API v1.1.5 and server version 2.6.0
Cheers