B4J Question Strange behavior Httputils and JobDone

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi all,
Strange thinks are happening with Imagedownloader and httputils2.

I try to download 100 images from a internal network.
All Images are there.

The download action has no problem with this but when it comes to Jobdone I miss some Jobs(images).
They have not been downloaded.

When I do this with about 20 Images there is no problem.

Any idea what this can be,
Thanks for help
Cheers,
Swissmade
 

Swissmade

Well-Known Member
Licensed User
Longtime User
Are you checking for download errors in JobDone?

Hi Erel,

I.m not checking for download error in JobDone.
There no Errors in Jobdone just less Download Jobs.
Images are there so they are not missing.
I am using the imagedownloader.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
So there are jobs that never complete?

Which server are you downloading the files from?

Hi Erel,
Yes some Jobs never complete.
The Application I'm busy with connect to a MySql Database on the Server. I test with more then one Server all the same problem.
I also have a server here at home in my local network for testing and there is the same problem. Even when I connect with my local IP.
In the Database Table there is the Links to the Image(Thumbnail) saved as URL. All the Images are there not one missing.
The information about the Image (ANPR Images) are nicely shown in the Table.
Testing the Application somewhere else there is the same problem. Missing Images.
If I download about 20 Images there is no Problem.

Is there a option to download a Images Directly without Jobdone so I can test this better?

Thanks Erel for helping.
 
Last edited:
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
You can test it with HttpUtils2 instead of ImageDownloader. You will still need to handle the JobDone event.

If your server is running a standard Windows OS (not Windows Server) then it might cause such issues. Microsoft deliberately limit the number of concurrent connections allowed.

Hi Erel,
Have not think of this only 20 connections. Thanks for the hint.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi Erel,
Have not think of this only 20 connections. Thanks for the hint.

Solve the Problem with this in Registry.
KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters
add the Key EnableConnectionRateLimiting and set this to about 120. 0 is unlimited
Key has to be a D_Word.

Maybe this can help others too.
 
Last edited:
Upvote 0
Top