Hi, I found a very annoying bug with HTTPUtils2: Consider the following code:
with an endpoint using https and passing http credentials, the code above never returns an http response, jobdone never fires, all logs including unfiltered are clean. As long as there are 4 or less concurrent http requests all is good. So if the loop was For i=0 To 3, everything would work as expected. I have been able to replicate this issue on all versions of b4a since 2.0 and all versions of Android from 2.2 to 4.1.1. This only applies to username/password ssl endpoints. Also it does not matter if it is a GET or POST related http action.
The following code snippet works as expected:
Erel, please confirm my findings
thanks,
Rad
B4X:
For i=0 To 5
Dim h1 As HttpJob
Dim imgurl As String
imgurl="https://xxxx/xx.png"
h1.Initialize(imgurl,Me)
h1.Username="xxx"
h1.Password="xxx"
h1.Download(imgurl)
Next
with an endpoint using https and passing http credentials, the code above never returns an http response, jobdone never fires, all logs including unfiltered are clean. As long as there are 4 or less concurrent http requests all is good. So if the loop was For i=0 To 3, everything would work as expected. I have been able to replicate this issue on all versions of b4a since 2.0 and all versions of Android from 2.2 to 4.1.1. This only applies to username/password ssl endpoints. Also it does not matter if it is a GET or POST related http action.
The following code snippet works as expected:
B4X:
For i=0 To 5
Dim h1 As HttpJob
Dim imgurl As String
imgurl="http://xxxx/xx.png"
h1.Initialize(imgurl,Me)
h1.Download(imgurl)
Next
Erel, please confirm my findings
thanks,
Rad