I have a long database operation that now require more than 30 seconds and I'm starting to see error "java.net.SocketTimeoutException: timeout"
This is the code. As you see I tried to increase timeout to 60 seconds but I suppose my code is wrong because the timeout error arrives after 30 seconds (taht should be the dfault timeout).
B4X:
req.Initialize(Me, "http://" & ServerList.Get(sl) & ":" & EBport & "/rdc")
cmd = CreateCommand("mycommand", Array As Object(NumberFormat(Month,2,0)))
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
j.GetRequest.Timeout=60000
If J.Success = True Then
The above code works fine if teh operation is completed before 30 seconds.
cmd = CreateCommand("mycommand", Array As Object(NumberFormat(Month,2,0)))
Dim j As HttpJob = req.ExecuteQuery(cmd, 0, Null)
j.GetRequest.Timeout=60000
Wait For (j) JobDone(j As HttpJob)