Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

uv: upgrade to 9c76d0d

  • Loading branch information...
commit 352febe2519b0bb0e004086fa06a27217bdbebbb 1 parent ccf7b41
@bnoordhuis bnoordhuis authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 deps/uv/src/unix/udp.c
View
8 deps/uv/src/unix/udp.c
@@ -340,6 +340,14 @@ static int uv__bind(uv_udp_t* handle,
goto out;
}
+#ifdef SO_REUSEPORT /* Apple's version of SO_REUSEADDR... */
+ yes = 1;
+ if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof yes) == -1) {
+ uv__set_sys_error(handle->loop, errno);
+ goto out;
+ }
+#endif
+
if (flags & UV_UDP_IPV6ONLY) {
#ifdef IPV6_V6ONLY
yes = 1;
Please sign in to comment.
Something went wrong with that request. Please try again.