S
S
Setti2011-08-10 16:07:20
Python
Setti, 2011-08-10 16:07:20

Python: Stuck streams with HTTP requests

Curl multi + Threading
Total 10 connections. Successfully managed to carry out first 70,000 requests, then 300,000. At some point, everything stops without error messages. Connection timeouts are set. There is a process instance in the Windows Task Manager, but the script just freezes without any sign of a problem. What to read?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexeyK, 2011-08-10
@AlexeyK

it can be anything, from channel sagging, to memory junk and your IP ban ... you have to look, it's
generally more convenient to debug such things through this library: code.google.com/p/workerpool/

M
Mark, 2011-08-11
@printf

I faced the same problem, I solved it trivially by setting a timeout for unconditional nailing the thread. I didn’t delve into the root causes in detail, sometimes it seems that the socket just falls off, and the library wants to read something from it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question