recvmsg() fails after connect error: log as Info not Warn

This commit is contained in:
Gerhard Rieger 2023-01-04 00:54:33 +01:00
parent 30ace16174
commit d95d62dbfb
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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;