Skip to content

Commit 5eef2d5

Browse files
committed
Allow UDP to have tp_clear (#190)
This makes the GC of UDPTransport<->UVPoll pair more deterministic and avoids a segfault. Fixes #125.
1 parent 92ea517 commit 5eef2d5

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

uvloop/handles/basetransport.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@cython.no_gc_clear
21
cdef class UVBaseTransport(UVSocketHandle):
32

43
def __cinit__(self):

uvloop/handles/handle.pyx

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@cython.no_gc_clear
21
cdef class UVHandle:
32
"""A base class for all libuv handles.
43
@@ -219,7 +218,6 @@ cdef class UVHandle:
219218
id(self))
220219

221220

222-
@cython.no_gc_clear
223221
cdef class UVSocketHandle(UVHandle):
224222

225223
def __cinit__(self):

uvloop/handles/udp.pyx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@cython.no_gc_clear
21
cdef class UDPTransport(UVBaseTransport):
32

43
def __cinit__(self):

0 commit comments

Comments
 (0)