<div>I&#39;ve spent some time going through the code for _newclient.py with the addition</div><div>of the changes for 4330.</div><div><br></div><div>I have been trying to find a way to incorporate checking for no response from an agent.request</div>
<div>I am using the sample code of response.py in the &#39;&#39;using web client&#39; howto in the twisted docs as a simple basis to do some testing</div><div><br></div><div>I have set up a test server that will not respond for a given time so I can see what my request will do.</div>
<div><br></div><div>What I can&#39;t do is work out where on the request deferred I add my callback for</div><div>the _canceller method in http11clientprotocol in _newclient. Or have I got that completely wrong.</div><div>
<div><br></div><div>Nor how I can then call this canceller method on the callback to get it to fire</div><div>if the timeout has been exceeded</div></div><div><br></div><div>It seems that the agent.request wraps the http11 Request so I am unclear where things are happening</div>
<div><br></div><div>I&#39;m a bit stuck .And I think  I&#39;m missing the obvious in some way.</div><div><br></div><div>If someone has an example of how I might setup the calls I would be very happy to see it.</div><div><br>
</div><div>Thanks for any info.</div><div><br></div><div>John Aherne</div><div><br></div><div><br></div><div><br></div>