mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
recvmsg() fails after connect error: log as Info not Warn
This commit is contained in:
parent
30ace16174
commit
d95d62dbfb
2 changed files with 6 additions and 1 deletions
5
CHANGES
5
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:
|
Coding:
|
||||||
New Environment variable SOCAT_TRANSFER_WAIT that Socat sleep before
|
New Environment variable SOCAT_TRANSFER_WAIT that Socat sleep before
|
||||||
starting the data transfer loop. Useful, e.g., to accumulate multiple
|
starting the data transfer loop. Useful, e.g., to accumulate multiple
|
||||||
|
|
|
@ -1577,7 +1577,7 @@ int xiogetpacketsrc(int fd, struct msghdr *msgh, int flags) {
|
||||||
msgh->msg_flags = 0;
|
msgh->msg_flags = 0;
|
||||||
#endif
|
#endif
|
||||||
if (Recvmsg(fd, msgh, flags) < 0) {
|
if (Recvmsg(fd, msgh, flags) < 0) {
|
||||||
Warn1("recvmsg(): %s", strerror(errno));
|
Info1("recvmsg(): %s", strerror(errno));
|
||||||
return STAT_RETRYLATER;
|
return STAT_RETRYLATER;
|
||||||
}
|
}
|
||||||
return STAT_OK;
|
return STAT_OK;
|
||||||
|
|
Loading…
Reference in a new issue