Suppress send() or recv() errors from logs. They happen quite often and are not considered errors.
This commit is contained in:
parent
4abdc3edbd
commit
ca33461851
|
@ -565,7 +565,7 @@ ssize_t net_recv(int fd, void* buf, size_t len, int flags)
|
||||||
{
|
{
|
||||||
if (net_error() != EWOULDBLOCK)
|
if (net_error() != EWOULDBLOCK)
|
||||||
{
|
{
|
||||||
net_error_out(fd, "net_recv");
|
/* net_error_out(fd, "net_recv"); */
|
||||||
net_stats_add_error();
|
net_stats_add_error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -584,7 +584,7 @@ ssize_t net_send(int fd, const void* buf, size_t len, int flags)
|
||||||
{
|
{
|
||||||
if (net_error() != EWOULDBLOCK)
|
if (net_error() != EWOULDBLOCK)
|
||||||
{
|
{
|
||||||
net_error_out(fd, "net_send");
|
/* net_error_out(fd, "net_send"); */
|
||||||
net_stats_add_error();
|
net_stats_add_error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue