Commit 8506a1f5 authored by sletz's avatar sletz
Browse files

Use SO_REUSEPORT instead of SO_REUSEADDR.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4651 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 1bdbfae5
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment