Skip to content

Commit

Permalink
Allow UDP to have tp_clear (#190)
Browse files Browse the repository at this point in the history
This makes the GC of UDPTransport<->UVPoll pair more deterministic
and avoids a segfault.

Fixes #125.
  • Loading branch information
1st1 committed Aug 2, 2018
1 parent 92ea517 commit 5eef2d5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion uvloop/handles/basetransport.pyx
@@ -1,4 +1,3 @@
@cython.no_gc_clear
cdef class UVBaseTransport(UVSocketHandle):

def __cinit__(self):
Expand Down
2 changes: 0 additions & 2 deletions uvloop/handles/handle.pyx
@@ -1,4 +1,3 @@
@cython.no_gc_clear
cdef class UVHandle:
"""A base class for all libuv handles.
Expand Down Expand Up @@ -219,7 +218,6 @@ cdef class UVHandle:
id(self))


@cython.no_gc_clear
cdef class UVSocketHandle(UVHandle):

def __cinit__(self):
Expand Down
1 change: 0 additions & 1 deletion uvloop/handles/udp.pyx
@@ -1,4 +1,3 @@
@cython.no_gc_clear
cdef class UDPTransport(UVBaseTransport):

def __cinit__(self):
Expand Down

0 comments on commit 5eef2d5

Please sign in to comment.