<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18226" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> We are struggling to close a TCP connection using web resource.Resource (the TR69 SOAP spec. mandates that we close the connection when we are done).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Our site is served in a TCP reactor & uses the NOT_DONE_YET variable in the def render_POST method. We close the render_POST with a request.write('data') & a request.finish() but the connection stays open, stub code below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> We are not sure if it is the fact that we are using chunked encoding or if this is a bug?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Please assist.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Warm Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Michael Toop</FONT></DIV>
<DIV> </DIV>
<DIV>def render_POST(self,request):</DIV>
<DIV> ...do stuff</DIV>
<DIV> d = getSoapText(request)</DIV>
<DIV> d.addCallback(request.write)</DIV>
<DIV> d.addCallback(request.close())</DIV>
<DIV> return server.NOT_DONE_YET </DIV></BODY></HTML>