On Tue, 09 Jun 2015 20:01:41 GMT, Zdeněk wrote:

Any ideas how to fix this? Thanks.

I couldn't reproduce this. I tried alongside a WebRequest in C# and the result is the same, it's pretty much 2 to 4x the latency of the server multiplied by the number of requests. For a 40ms latency, you get 120ms per request for a download within 3 roundtrips, and then multiply by 1000 requests and you get a 120 seconds job. Obviously, if you use concurrent tasks it finishes within less than 1 second.