<div dir="ltr">I have been running some tests to check some issue and have seen that notifyFinish is not being called in 16.4.1<div><br></div><div>This is on Windows 10 using python 2.7.12<br><div><br></div><div>Checking back it  is not called 16.3.0 but is in 16.2.0</div><div><br></div><div>The test uses some sample code from Twisted web in 60 seconds that sets a timer to allow the browser to halt the request by using Escape and make notifyFinish  get called.</div><div><br></div><div>Before I did anything else I thought I would check and see if anyone else was seeing this behaviour.</div><div><br></div><div>The code I am using is below:</div><div><br></div><div><div>from twisted.web.resource import Resource</div><div>from twisted.web.server import  Site, NOT_DONE_YET</div><div>from twisted.internet import reactor</div><div><br></div><div><br></div><div>class DelayedResource(Resource):</div><div>    def _delayedRender(self, request):</div><div>        print 'SEND RESPONSE'</div><div>        request.write("Sorry to keep you waiting.")</div><div>        request.finish()</div><div><br></div><div>    def _responseFailed(self, failure, call):</div><div>        print 'RESPONSE FAILED', failure</div><div>        call.cancel()</div><div><br></div><div><br></div><div>    def render_GET(self, request):</div><div>        call = reactor.callLater(10, self._delayedRender, request)</div><div>        request.notifyFinish().addErrback(self._responseFailed, call)</div><div>        return NOT_DONE_YET</div><div><br></div><div><br></div><div><br></div><div>resource = Resource()</div><div>print 'RESOURCE', resource</div><div>resource.putChild("logme", DelayedResource())</div><div>factory = Site(resource)</div><div><br></div><div>print 'FACTORY', factory</div><div>reactor.listenTCP(8080, factory)</div><div>reactor.run()</div></div><div><br><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><b>John Aherne</b><div><b><br></b><div><b><img src="http://www.rocs.co.uk/Images/rocs_logo_sig.gif"><br></b></div><div><b><br></b></div><div><div><b><a href="http://www.rocs.co.uk" target="_blank">www.rocs.co.uk</a><br></b></div></div></div><div>020 7223 7567</div></div>
</div></div></div></div>