Android Question Http Post - Timeout

FrankDev

Active Member
Licensed User
Longtime User
Hello ,

I send a Json file to a server and wait for confirmation of the transmission (transfer: "success").

The file is transferred and the data is immediately written to a database. (There are 'only' about 200 records in the Json file) Unfortunately, this process takes a very long time, about 40 seconds, and only after that 'success' is sent.

After 30 seconds my app has already given up with 'Timeout'.

I want to increase the timeout (wait for answer) to 60 sec.

is that 'so' right?

B4X:
Dim job As HttpJob

job.Initialize("job",Me)

job.PostString(Server ,param)
job.GetRequest.Timeout = 60000  '<----NEU
job.GetRequest.SetContentType("application/json")

regards Frank
 

FrankDev

Active Member
Licensed User
Longtime User
Hi, Marco,

I haven't heard anything for a long time. I hope you're well!

thanks for the confirmation. I was able to test it before. It worked.

regards Frank
 
Upvote 0
Top