Message262973
I do understand that the docs are a bit strange on the issue. For example, actually testing the line you referenced ("...fileno will return the same socket and not a duplicate.") by creating 2 sockets and testing sameness with the 'is' operator returns false.
I tried to trim the example code as much as possible - I did test disabling the garbage collector, playing with inheritance, etc, but trimmed them out as they didn't have any effect on my system.
I think my main issue was, when this occurs, the socket 'breaks' as you mentioned instead of closing. Was almost sure it was a bug. Using detach works for this UDP example, but I wasn't sure if detaching the socket actually closes it (e.g. in a stream oriented connection).
So this is considered normal behavior then? |
|
Date |
User |
Action |
Args |
2016-04-07 00:32:36 | JoshN | set | recipients:
+ JoshN, pitrou, docs@python, martin.panter, josh.r |
2016-04-07 00:32:35 | JoshN | set | messageid: <1459989155.42.0.380872594554.issue26703@psf.upfronthosting.co.za> |
2016-04-07 00:32:35 | JoshN | link | issue26703 messages |
2016-04-07 00:32:34 | JoshN | create | |
|