Skip to content

Commit cdb3bde

Browse files
committed
Anagram: increase non-blocking socket buffers to 0xfffff
Signed-off-by: falkTX <[email protected]>
1 parent 68dbb89 commit cdb3bde

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

posix/JackSocket.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ void JackClientSocket::SetNonBlocking(bool onoff)
119119
if (fcntl(fSocket, F_SETFL, flags | O_NONBLOCK) < 0) {
120120
jack_error("SetNonBlocking fd = %ld err = %s", fSocket, strerror(errno));
121121
}
122+
#ifdef _DARKGLASS_DEVICE_PABLITO
123+
const int value = 0xfffff;
124+
if (setsockopt(fSocket, SOL_SOCKET, SO_RCVBUF, &value, sizeof(value)) < 0) {
125+
jack_error("SO_RCVBUF size fd = %ld err = %s", fSocket, strerror(errno));
126+
}
127+
if (setsockopt(fSocket, SOL_SOCKET, SO_SNDBUF, &value, sizeof(value)) < 0) {
128+
jack_error("SO_SNDBUF size fd = %ld err = %s", fSocket, strerror(errno));
129+
}
130+
#endif
122131
}
123132
}
124133

0 commit comments

Comments
 (0)