Hello,
My server uses 2 seconds updates with a get method from a data feeding network to get the latest finance data and send to my own server's database with a timer that executes httpjob. It was working without problem but yesterday evening it took a "Connection refused" Error and did not send the updates to my own server till that moment. I have killed the process and restarted and it started working again. ( The app was not closed or crashed at the server side , it was still working but not sending updates ) I had try / catch in the code .
My question is , how can i make the app continue if it gets a conneciton refused response. ?
For Example Currently on jobdone I have:
TRy
...
Catch
log(lastexception.message)
end try
If i put httpjob.download ( get method ) between catch and end try , in case of a connection refuse message, will it continue with the next try . Because currently the app logged the error and stopped operations but not crashed.
My server uses 2 seconds updates with a get method from a data feeding network to get the latest finance data and send to my own server's database with a timer that executes httpjob. It was working without problem but yesterday evening it took a "Connection refused" Error and did not send the updates to my own server till that moment. I have killed the process and restarted and it started working again. ( The app was not closed or crashed at the server side , it was still working but not sending updates ) I had try / catch in the code .
My question is , how can i make the app continue if it gets a conneciton refused response. ?
For Example Currently on jobdone I have:
TRy
...
Catch
log(lastexception.message)
end try
If i put httpjob.download ( get method ) between catch and end try , in case of a connection refuse message, will it continue with the next try . Because currently the app logged the error and stopped operations but not crashed.
Last edited: