Don't acknowledge 0 bytes read
This commit is contained in:
parent
4a110d9697
commit
a822707158
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ enum FD_STATE read_packet_from_udp (int fd, struct buffer_packet* bp, struct udp
|
|||
return FDS_ERR;
|
||||
}
|
||||
if (nread == -1 && errno == EAGAIN) return FDS_AGAIN;
|
||||
if (nread == -1 && errno == EAGAIN) return FDS_AGAIN;
|
||||
if (nread == 0) return FDS_AGAIN;
|
||||
if (nread == -1) {
|
||||
fprintf(stderr, "A system error occured\n");
|
||||
return FDS_ERR;
|
||||
|
|
Loading…
Reference in a new issue