[issue14820] socket._decref_socketios and close

2012-05-16 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You are right. I should have looked more carefully. =) -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue14820] socket._decref_socketios and close

2012-05-15 Thread R. David Murray
R. David Murray added the comment: Mostly likely it is correct. Looking at the definition of close, it is calling "_real_close" when the _io_refs count drops to zero, and _decref_socketios is decrementing that counter. So the logic is "if we have been closed, see if it is time to close the

[issue14820] socket._decref_socketios and close

2012-05-15 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Don't know the details but this condition looks wrong: http://hg.python.org/cpython/file/cdcc816dea85/Lib/socket.py#l190 -- messages: 160777 nosy: giampaolo.rodola, janssen priority: normal severity: normal status: open title: socket._decref_socket