New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
long poll protocol stops polling #1459
Comments
Sorry, too little information to help you. Do you have the CometD debug logs that show the problem? |
I can't share logs because of employment policy. what i can there is request going from client and response is successful |
part of logs when user change network connection : |
What you can try is to ask iOS/Android to notify you of the network change. In theory there should be no need to do this, as CometD will catch the |
Actually cometD it catch Socket exception, only polling request stops. I need a way to start polling from server again, in case user change mobile network or polling stops |
It is not supposed to stop. We have a large number of tests for this scenario. You have to provide proof of what's going on, so we can determine whether you are hitting a corner case, and if so we can fix it. As I said, network interruptions are expected in CometD, there is a configurable retry mechanism, and everything works fine with normal networks and OSes. I think the problem is more on the mobile side where CometD tries to open a new connection, but iOS/Android still gives CometD the old stack with the old network so when CometD tries to open a new connection it fails. IIRC, both iOS and Android have ways to communicate network changes, so you can try the workaround I described in a previous comment (disconnect + handshake). |
CometD version 4.0.4
Description
We have implementation of cometD in our App (Android/iOS), recently we faced issue, the long poll protocol stops polling when user change network from wifi to mobile network. he can send data but can't receive .
the logs is return success .
The text was updated successfully, but these errors were encountered: