projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf7b41
)
uv: upgrade to 9c76d0d
author
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 26 Jan 2012 23:53:37 +0000
(
00:53
+0100)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 26 Jan 2012 23:56:32 +0000
(
00:56
+0100)
deps/uv/src/unix/udp.c
patch
|
blob
|
history
diff --git
a/deps/uv/src/unix/udp.c
b/deps/uv/src/unix/udp.c
index 3e5de929485431fdf8885cd5f63ef5e9c34f5761..6db0ea1063bd3800d1a14a8fb497cc6983a88621 100644
(file)
--- a/
deps/uv/src/unix/udp.c
+++ b/
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;