This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Kazutaka.Morita, pitrou, vinay.sajip
Date 2012-06-25.15:30:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340638216.87.0.088167255581.issue15179@psf.upfronthosting.co.za>
In-reply-to
Content
> This seems a flawed contract; either connect() should work (in which
> case the socket will need closing when it's finished with) or it should 
> fail, not connect and not require a close call (as it isn't connected)

socket.close() closes the file descriptor, not only the underlying network connection. Otherwise the file descriptor will stay open until the socket object is garbage collected.
History
Date User Action Args
2012-06-25 15:30:16pitrousetrecipients: + pitrou, vinay.sajip, Kazutaka.Morita
2012-06-25 15:30:16pitrousetmessageid: <1340638216.87.0.088167255581.issue15179@psf.upfronthosting.co.za>
2012-06-25 15:30:16pitroulinkissue15179 messages
2012-06-25 15:30:16pitroucreate