We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c44397 commit d60be44Copy full SHA for d60be44
uvloop/handles/handle.pyx
@@ -282,6 +282,9 @@ cdef class UVSocketHandle(UVHandle):
282
# * detach() call will reset FD for the Python socket
283
# object, which means that it won't be closed 2nd time
284
# when the socket object is GCed.
285
+ #
286
+ # No need to call `socket_dec_io_ref()`, as
287
+ # `socket.detach()` ignores `socket._io_refs`.
288
self._fileobj.detach()
289
else:
290
try:
0 commit comments