<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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;We are struggling to close a TCP connection using web resource.Resource&nbsp;(the TR69 SOAP spec. mandates that we close the connection when we are done).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;Our site is served in a TCP reactor &amp; uses the NOT_DONE_YET variable in the def render_POST method.&nbsp; We close the render_POST with a request.write('data') &amp; a request.finish() but the connection stays open, stub code below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;Please assist.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Warm Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Michael Toop</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>def render_POST(self,request):</DIV>
<DIV>&nbsp;&nbsp; ...do stuff</DIV>
<DIV>&nbsp; d = getSoapText(request)</DIV>
<DIV>&nbsp;&nbsp;d.addCallback(request.write)</DIV>
<DIV>&nbsp;&nbsp;d.addCallback(request.close())</DIV>
<DIV>&nbsp; return server.NOT_DONE_YET&nbsp;</DIV></BODY></HTML>