From f5122826fbf4a44ff3a9d5e0a321863813c94060 Mon Sep 17 00:00:00 2001 From: fduncanh Date: Fri, 2 Sep 2022 07:46:22 -0400 Subject: [PATCH] modified keepalive settings for WIN32 --- lib/raop_rtp_mirror.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/raop_rtp_mirror.c b/lib/raop_rtp_mirror.c index 34da7d4..f463e26 100644 --- a/lib/raop_rtp_mirror.c +++ b/lib/raop_rtp_mirror.c @@ -38,9 +38,12 @@ #ifdef _WIN32 #define CAST (char *) -#define TCP_KEEPIDLE SO_KEEPALIVE -#define TCP_KEEPINTVL SO_KEEPALIVE -#define TCP_KEEPCNT SO_KEEPALIVE +/* are these keepalive settings for WIN32 correct? */ +/* (taken from https://github.com/wegank/ludimus) */ +#define TCP_KEEPALIVE 3 +#define TCP_KEEPCNT 16 +#define TCP_KEEPIDLE TCP_KEEPALIVE +#define TCP_KEEPINTVL 17 #else #define CAST #endif