[Twisted-web] Re: web client & "TimeoutError: User timeout caused connection failure"

Lenny G Arbage alengarbage at yahoo.com
Sun Feb 12 22:18:36 MST 2006

  This may be known to some of you, but google sure
doesn't want to divulge it upon searching for the
"TimeoutError" message described in the title, so I
thought I'd document what I've found so far.  Failures
begin to occur exactly 30 seconds after all the
initial deferreds were started, which explains why you
need lots of requests if the responses are fairly
quick and less if the responses take a bit of time to
come back.  

  If I add a line to

    print "connect failed: %s" % _.timeout

The connector object confesses that its timeout was
indeed set at 30 seconds.

  In my case, I'd like to be able to set the
connector's timeout a bit higher, but I don't see how
to go about it.  This isn't the 'timeout=' parameter
passed into HTTPClientFactory, which is set to 0.  I
think it comes from HTTPPageGetter or protocol.http
with the TimeoutMixin, but it's all a bit unclear to
me -- am I on the right track?  Any pointers?


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Twisted-web mailing list