From d95d62dbfbbaeb9abb16cd6256fac04477f543ff Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Wed, 4 Jan 2023 00:54:33 +0100 Subject: [PATCH] recvmsg() fails after connect error: log as Info not Warn --- CHANGES | 5 +++++ xio-socket.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 05c15fd..6ad9ed9 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,9 @@  +Corrections: + On connect() failure and in some other situations Socat tries to get + detailled information about the error with recvmsg(). Error return of + this function is now logged as Info instead of Warn. + Coding: New Environment variable SOCAT_TRANSFER_WAIT that Socat sleep before starting the data transfer loop. Useful, e.g., to accumulate multiple diff --git a/xio-socket.c b/xio-socket.c index a81ddf8..2783a49 100644 --- a/xio-socket.c +++ b/xio-socket.c @@ -1577,7 +1577,7 @@ int xiogetpacketsrc(int fd, struct msghdr *msgh, int flags) { msgh->msg_flags = 0; #endif if (Recvmsg(fd, msgh, flags) < 0) { - Warn1("recvmsg(): %s", strerror(errno)); + Info1("recvmsg(): %s", strerror(errno)); return STAT_RETRYLATER; } return STAT_OK;