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 YoSTEALTH
Recipients YoSTEALTH, christian.heimes, martin.panter, pitrou, r.david.murray, vstinner, yselivanov
Date 2018-02-24.02:22:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519438936.99.0.467229070634.issue28134@psf.upfronthosting.co.za>
In-reply-to
Content
Christian thank you for your reply, i really appreciate it.

Lets analyze this a bit:
- Technically speaking i can "return client" directly and it would NOT close the socket.
- Shouldn't "inside" having reference to same fd mean +1 to reference count. Considering its a new object?
id(client): 140340037397192
id(inside): 140340010863560

I could understand making a duplicate of the fd if it were being passed across thread/process but in its original thread making a duplicate! This behavior is extremely odd.

I fell like everyone that uses socket(fileno) will run into days wasted and frustration just to figure out these solutions.
History
Date User Action Args
2018-02-24 02:22:17YoSTEALTHsetrecipients: + YoSTEALTH, pitrou, vstinner, christian.heimes, r.david.murray, martin.panter, yselivanov
2018-02-24 02:22:16YoSTEALTHsetmessageid: <1519438936.99.0.467229070634.issue28134@psf.upfronthosting.co.za>
2018-02-24 02:22:16YoSTEALTHlinkissue28134 messages
2018-02-24 02:22:16YoSTEALTHcreate