Suppress send() or recv() errors from logs. They happen quite often and are not considered errors.

This commit is contained in:
Jan Vidar Krey 2009-06-23 01:57:55 +02:00
parent 4abdc3edbd
commit ca33461851
1 changed files with 2 additions and 2 deletions

View File

@ -565,7 +565,7 @@ ssize_t net_recv(int fd, void* buf, size_t len, int flags)
{
if (net_error() != EWOULDBLOCK)
{
net_error_out(fd, "net_recv");
/* net_error_out(fd, "net_recv"); */
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)
{
net_error_out(fd, "net_send");
/* net_error_out(fd, "net_send"); */
net_stats_add_error();
}
}