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?
regards Frank
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