D Derek Jee Active Member Licensed User Longtime User May 27, 2015 #1 Hi there If I set a timeout on my HTTP request, how can I check if it has timed out and if the job actually comes back in after the time out what will happen to it.. Many thanks, Derek.
Hi there If I set a timeout on my HTTP request, how can I check if it has timed out and if the job actually comes back in after the time out what will happen to it.. Many thanks, Derek.
Peter Simpson Expert Licensed User Longtime User May 27, 2015 #2 I could be wrong, but if you are using HTTP then I would presume that a time out would appear in Code: Copy _ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int) Upvote 0
I could be wrong, but if you are using HTTP then I would presume that a time out would appear in Code: Copy _ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
D Derek Jee Active Member Licensed User Longtime User May 27, 2015 #3 Thank you Peter I wanted to test it for myself but my wifi is not working right now and my android device is not cellular.. I will hopefully get it working to test what your suggestion gives me in terms of timing out.. Thank you, Derek. Upvote 0
Thank you Peter I wanted to test it for myself but my wifi is not working right now and my android device is not cellular.. I will hopefully get it working to test what your suggestion gives me in terms of timing out.. Thank you, Derek.
Erel B4X founder Staff member Licensed User Longtime User May 28, 2015 #4 I recommend you to use HttpUtils2. The job will be aborted when because of the time out. You can then check the value of Job.ErrorMessage. Upvote 0
I recommend you to use HttpUtils2. The job will be aborted when because of the time out. You can then check the value of Job.ErrorMessage.