Revert "Block on sendmsg() for now"

This reverts commit 2c9d971437.
This commit is contained in:
Adrien Gallouët
2019-09-16 10:37:19 +00:00
parent 2c9d971437
commit 5aeaf9e512

6
mud.c
View File

@@ -436,11 +436,7 @@ mud_send_path(struct mud *mud, struct mud_path *path, uint64_t now,
memcpy(CMSG_DATA(cmsg), &tc, sizeof(int));
}
ssize_t ret = 0;
do {
ret = sendmsg(mud->fd, &msg, flags);
} while (ret == (ssize_t)-1 && errno == EAGAIN);
ssize_t ret = sendmsg(mud->fd, &msg, flags);
path->send.total++;
path->send.bytes += size;