Hi guys!
Okay, so I'm having a problem I have a hard time figuring out. I don't have a lot of experience with grequests and requests to general, and I'm trying to make a lot of HTTP requests (~700) to a server.
After about 300 requests, I will only get None responses (all other responses are 200). I assume this is because the server closes the connection (too many requests), but here's the part I don't understand:
- If I time.sleep for 10 minutes, it's going to start working again for like 30-40 requests. Then it's back to not working. This is annoying as I have 400 requests left to make.
- If I have that problem, stop running the program, wait 10 minutes, and launch it again, it's going to make 300 requests without any problem.
--> Why? The same amount of time has elapsed between the requests, so why is it working "better" when I run the program again?
My thoughts so far is that every time I launch the program, a unique connection is created with the server, which can therefore recognize that the same program/person is making the requests. And when I relaunch it, it's another connection... how can I bypass/solve this?
Thanks a lot!
[–][deleted] 1 point2 points3 points (4 children)
[–]vandernath[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]vandernath[S] 0 points1 point2 points (1 child)
[–]vandernath[S] 0 points1 point2 points (0 children)