Skip to content

Commit 48d0b1e

Browse files
committed
Use cythonized SO_REUSEPORT rather than the unwrapped native one.
Fixes MagicStack#550
1 parent 6c770dc commit 48d0b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvloop/loop.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ cdef class Loop:
17751775
if reuse_address:
17761776
sock.setsockopt(uv.SOL_SOCKET, uv.SO_REUSEADDR, 1)
17771777
if reuse_port:
1778-
sock.setsockopt(uv.SOL_SOCKET, uv.SO_REUSEPORT, 1)
1778+
sock.setsockopt(uv.SOL_SOCKET, SO_REUSEPORT, 1)
17791779
# Disable IPv4/IPv6 dual stack support (enabled by
17801780
# default on Linux) which makes a single socket
17811781
# listen on both address families.

0 commit comments

Comments
 (0)