Skip to content

Commit

Permalink
Use cythonized SO_REUSEPORT rather than the unwrapped native one.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptribble committed Jun 20, 2024
1 parent 6c770dc commit 48d0b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvloop/loop.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,7 @@ cdef class Loop:
if reuse_address:
sock.setsockopt(uv.SOL_SOCKET, uv.SO_REUSEADDR, 1)
if reuse_port:
sock.setsockopt(uv.SOL_SOCKET, uv.SO_REUSEPORT, 1)
sock.setsockopt(uv.SOL_SOCKET, SO_REUSEPORT, 1)
# Disable IPv4/IPv6 dual stack support (enabled by
# default on Linux) which makes a single socket
# listen on both address families.
Expand Down

0 comments on commit 48d0b1e

Please sign in to comment.