Hi all,
I'm experiencing a strange delay when executing a POST operation using standard code as below.
Why strange? Because exactly the same code (it's a B4xPages project) used from the B4J counterpart takes 2 seconds at most while the B4A version waits for about 30 seconds prior to give the success response.
What could it be? What would you investigate first?
ps: buffer length is only 154 bytes, so the problem should be elsewhere
pps: tried both Http and Https hurls
Update:
I tried to insert the following line after the pjob.initialize and the delay shortened to 5 seconds. So it sound like a kind of timeout, but I can't see why it passes, since the server response looks ok (it's successful and it carries the expected data).
And the initial question remains: why the delay/timeout applies only to the Android version?
ps: shortening the timeout to 100ms everything still works ok. Taking it to <80ms raises the timeout error.
I'm experiencing a strange delay when executing a POST operation using standard code as below.
Why strange? Because exactly the same code (it's a B4xPages project) used from the B4J counterpart takes 2 seconds at most while the B4A version waits for about 30 seconds prior to give the success response.
What could it be? What would you investigate first?
B4X:
Dim pJob As HttpJob
pJob.Initialize("", Me)
pJob.PostBytes(AppGlobals.hurl&"/pop",buffer)
Wait For(pJob) JobDone(j As HttpJob)
If j.Success Then
...
pps: tried both Http and Https hurls
Update:
I tried to insert the following line after the pjob.initialize and the delay shortened to 5 seconds. So it sound like a kind of timeout, but I can't see why it passes, since the server response looks ok (it's successful and it carries the expected data).
And the initial question remains: why the delay/timeout applies only to the Android version?
B4X:
pjob.GetRequest.Timeout = 5000