Automatic reconnection after network failure
We have one issue using Primefaces push framework. We are using long polling to push notifications to our clients. It is working fine so far. But if the connection to the application server is temporarily broken (e.g. network failure) atmosphere script tries 5 times to connect the server and gives up. So if the server is available again there are no connection attempts and notifications are no longer working. We found out that there is variable maxReconnectOnClose (set to 5) in push.js that is evaluated on connection failures. So one possibility to solve this problem is e.g. a patch for push.js and set the maxReconnectOnClose to higher value. But patching of 3th-party libraries is not so good idea due to maintenace reasons. Are there other solutions for this problem that can solve it in a "clean" way?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests