Posts: 29
Threads: 10
Joined: Jul 2018
Reputation:
0
Location: Russia
If the connection is lost ( bad Internet ), the timer does not recover when the connection reappears. How to resume the timer when the connection is active again ?
The timer is triggered 1 time per second. I use the method OnAsyncTimer.
Posts: 1,055
Threads: 74
Joined: Mar 2018
Reputation:
23
03-10-2019, 04:43 AM
(This post was last modified: 03-10-2019, 05:03 AM by Alexandre Machado.)
The timer should recover. ServerController.JavaScriptOptions.AjaxErrorMode controls how Ajax errors are handled on the browser side.
If you set it to emNone it will just ignore the erros and continue working, i.e. it will send request to the server, even if the prior request failed.
Can you please test it and let me know?
Posts: 1,055
Threads: 74
Joined: Mar 2018
Reputation:
23
Hum... yes, you are correct.
The issue here is that the timer gets reactivated when processing the response. If the response fails, the timer doesn't get reactivated.
I'll have a look and see if I can find a workaround. I'll keep you informed, OK?
Posts: 1,055
Threads: 74
Joined: Mar 2018
Reputation:
23
I have some working code but I need to know your exact IW version in order to provide you a patch
Posts: 1,055
Threads: 74
Joined: Mar 2018
Reputation:
23
Give me 1-2 days to prepare it.
Posts: 1,055
Threads: 74
Joined: Mar 2018
Reputation:
23
Porting to IW 14.2.8 showed more complicated than I first thought and I had to stop it to take care of other things. I'll see if I can proceed on it today and let you know.