Android Question HTTP timeout

Derek Jee

Active Member
Licensed User
Longtime User
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
I could be wrong, but if you are using HTTP then I would presume that a time out would appear in
B4X:
_ResponseError(Response As HttpResponse, Reason As String, StatusCode As Int, TaskId As Int)
 
Upvote 0

Derek Jee

Active Member
Licensed User
Longtime User
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
Top