summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2011-12-16 17:09:29 +0000
committersletz <sletz@0c269be4-1314-0410-8aa9-9f06e86f4224>2011-12-16 17:09:29 +0000
commit8506a1f5b798a1cbb285e07e2dff6a5cd9800674 (patch)
treee79081a40b59a835cf7e7aaa792c853716fff017
parent1bdbfae5eef7670f0a3677d501138e4248597e65 (diff)
downloadjack2-8506a1f5b798a1cbb285e07e2dff6a5cd9800674.tar.gz
Use SO_REUSEPORT instead of SO_REUSEADDR.
git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4651 0c269be4-1314-0410-8aa9-9f06e86f4224
-rw-r--r--posix/JackNetUnixSocket.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/JackNetUnixSocket.cpp b/posix/JackNetUnixSocket.cpp
index 52fe30f1..99cb5ebb 100644
--- a/posix/JackNetUnixSocket.cpp
+++ b/posix/JackNetUnixSocket.cpp
@@ -99,7 +99,8 @@ namespace Jack
/* Enable address reuse */
int res, on = 1;
- if ((res = setsockopt(fSockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) < 0) {
+ //if ((res = setsockopt(fSockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on))) < 0) {
+ if ((res = setsockopt(fSockfd, SOL_SOCKET, SO_REUSEPORT, &on, sizeof(on))) < 0) {
StrError(NET_ERROR_CODE);
}
return fSockfd;