do not display an error when recv() == 0
This is the client closing the connection with us.master
parent
9cf3edf10f
commit
d0c8b24985
|
@ -98,14 +98,11 @@ static int tip_client_recv(struct tip_client *cli, int events)
|
|||
|
||||
ret = recv(io->fd, cli->buf + cli->buf_len,
|
||||
sizeof(cli->buf) - cli->buf_len, 0);
|
||||
if (ret <= 0) {
|
||||
if (ret < 0) {
|
||||
syslog(LOG_ERR, "error reading from client %s:%hu (%s)\n",
|
||||
inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port),
|
||||
strerror(errno));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue