From 8eca44bdee5a9599bf51b4162167966bffcf6ada Mon Sep 17 00:00:00 2001 From: John Date: Sat, 17 Dec 2022 16:45:59 +0100 Subject: [PATCH] fix for tcp opts applied to udp socket (fixes #733) --- src/lib/utils/tcpsocket.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/utils/tcpsocket.cpp b/src/lib/utils/tcpsocket.cpp index 84a1e8ed..646e049d 100755 --- a/src/lib/utils/tcpsocket.cpp +++ b/src/lib/utils/tcpsocket.cpp @@ -79,6 +79,7 @@ int tcpKeepAliveInterval) { close(sfd); return -1; } + return sfd; } int value = 1; ret = setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, reinterpret_cast(&value), sizeof(value));