Skip to content

Commit

Permalink
Fix macOS build
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 1, 2024
1 parent a0bf7d3 commit 392ef58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,16 +161,16 @@ int socket_start(int socket_port, int feedback_port, int buffer_size)
if (feedback_port != 0)
setsockopt(g_fbserverfd, SOL_SOCKET, SO_REUSEPORT, &value, sizeof(value));

/* Set TCP_NODELAY */
setsockopt(g_serverfd, SOL_TCP, TCP_NODELAY, &value, sizeof(value));
if (feedback_port != 0)
setsockopt(g_fbserverfd, SOL_TCP, TCP_NODELAY, &value, sizeof(value));

/* Increase socket size */
value = 131071;
setsockopt(g_serverfd, SOL_SOCKET, SO_RCVBUF, &value, sizeof(value));
if (feedback_port != 0)
setsockopt(g_fbserverfd, SOL_SOCKET, SO_RCVBUF, &value, sizeof(value));

/* Set TCP_NODELAY */
setsockopt(g_serverfd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value));
if (feedback_port != 0)
setsockopt(g_fbserverfd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value));
#endif

/* Startup the socket struct */
Expand Down

0 comments on commit 392ef58

Please sign in to comment.