We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d35f10 commit 4083a94Copy full SHA for 4083a94
uvloop/includes/uv.pxd
@@ -57,7 +57,7 @@ cdef extern from "uv.h" nogil:
57
cdef int SOL_SOCKET
58
cdef int SO_ERROR
59
cdef int SO_REUSEADDR
60
- cdef int SO_REUSEPORT
+ # use has_SO_REUSEPORT and SO_REUSEPORT in stdlib.pxi instead
61
cdef int AF_INET
62
cdef int AF_INET6
63
cdef int AF_UNIX
uvloop/loop.pyx
@@ -1775,7 +1775,7 @@ cdef class Loop:
1775
if reuse_address:
1776
sock.setsockopt(uv.SOL_SOCKET, uv.SO_REUSEADDR, 1)
1777
if reuse_port:
1778
- sock.setsockopt(uv.SOL_SOCKET, uv.SO_REUSEPORT, 1)
+ sock.setsockopt(uv.SOL_SOCKET, SO_REUSEPORT, 1)
1779
# Disable IPv4/IPv6 dual stack support (enabled by
1780
# default on Linux) which makes a single socket
1781
# listen on both address families.
0 commit comments