HTTPDataCollectorAPI icon indicating copy to clipboard operation
HTTPDataCollectorAPI copied to clipboard

HttpWebRequest retry strategy

Open moberacker opened this issue 8 years ago • 4 comments

Hi, is it possible to implement some HttpWebRequest retry strategy in your Collector?

moberacker avatar May 22 '17 08:05 moberacker

@moberacker You mean based on the 429 HTTP Status Code? It can be done, I'll have to see if I can do it in the coming weeks.

ealsur avatar Jun 16 '17 15:06 ealsur

@ealsur no I mean if the internet connection dies for a couple of seconds, and then comes back...the code will throw an exception, with a status like ReceiveFailure, ConnectFailure, KeepAliveFailure etc. it's quite important that if the internet connection comes back, the HttpDataCollectorAPI should be able to continue communicating with the server...

moberacker avatar Jun 19 '17 11:06 moberacker

@moberacker Sounds good, I'll research the possible codes to catch just those and see if I can apply an exponential back off.

ealsur avatar Jun 19 '17 14:06 ealsur

ok thanks

moberacker avatar Jun 19 '17 15:06 moberacker