I have between 1000-2000 web pages to download from a single server, and I use routines and channels to achieve high performance. The problem is that every time I run my program, up to 400 requests with the error "connection reset by peer". Rarely (possibly 1 out of 10 times), requests are not executed.
What can I do to prevent this?
The interesting thing is that when I ran this program on a server in the same country as the server hosting the site, 0 requests were unsuccessful, so I assume there is some problem with the delay (as it is now working on a server on a different continent) .
The code I'm using is just a simple http.Get (url) request, no additional parameters, or a custom client.
fgblomqvist
source share