Bill Janssen added the comment:

That's because the socket.py code has been adapted (the first word I wrote
there was "perverted" :--) to deal with this case.  That is, the close() has
been rendered meaningless because of the explicit reference counting in
socket.py.  But the right solution is to not close the socket till the
application is done with it; that is, transfer the responsibility for the
socket to the part of the application which is still using it.  I'm not sure
that just fixing this one case will remove the need for the explicit
reference counting in socket.py, but this is the case that I noticed.

On Nov 26, 2007 1:11 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote:

>
> Guido van Rossum added the comment:
>
> Bill, is there a code example that should work but breaks because of
> that close()?  ATM, there doesn't seem to be anything in the tests that
> breaks...
>
> __________________________________
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue1348>
> __________________________________
>

Added file: http://bugs.python.org/file8814/unnamed

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1348>
__________________________________
That&#39;s because the socket.py code has been adapted (the first word I wrote 
there was &quot;perverted&quot; :--) to deal with this case.&nbsp; That is, the 
close() has been rendered meaningless because of the explicit reference 
counting in 
socket.py.&nbsp; But the right solution is to not close the socket till the 
application is done with it; that is, transfer the responsibility for the 
socket to the part of the application which is still using it.&nbsp; I&#39;m 
not sure that just fixing this one case will remove the need for the explicit 
reference counting in 
socket.py, but this is the case that I noticed.<br><br><div 
class="gmail_quote">On Nov 26, 2007 1:11 PM, Guido van Rossum &lt;<a 
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt; wrote:<br><blockquote 
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 
0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Guido van Rossum added the comment:<br><br>Bill, is there a code example 
that should work but breaks because of<br>that close()? &nbsp;ATM, there 
doesn&#39;t seem to be anything in the tests that<br>breaks...<br><div><div>
</div><div class="Wj3C7c"><br>__________________________________<br>Tracker 
&lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>&gt;<br>&lt;<a 
href="http://bugs.python.org/issue1348"; 
target="_blank">http://bugs.python.org/issue1348
</a>&gt;<br>__________________________________<br></div></div></blockquote></div><br>

_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to