R RadCoder Member Licensed User Longtime User Oct 21, 2012 #1 Hi, I found a very annoying bug with HTTPUtils2: Consider the following code: Code: Copy 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: Code: Copy 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
Hi, I found a very annoying bug with HTTPUtils2: Consider the following code: Code: Copy 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: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2012 #2 Confirmed and fixed: http://www.b4x.com/forum/additional...es/22553-http-library-v1-22-a.html#post130825 Note that it is not related to https, only to tasks with user name and password. Upvote 0
Confirmed and fixed: http://www.b4x.com/forum/additional...es/22553-http-library-v1-22-a.html#post130825 Note that it is not related to https, only to tasks with user name and password.