Commit 2d8240f8 authored by Stephen Hemminger's avatar Stephen Hemminger

Fix flushing of large number of entries

Checking for errors would cause some responses to be lost.
parent 1558971d
......@@ -121,8 +121,8 @@ int rtnl_send_check(struct rtnl_handle *rth, const char *buf, int len)
if (status < 0)
return status;
/* Check for errors */
status = recv(rth->fd, resp, sizeof(resp), MSG_DONTWAIT);
/* Check for immediate errors */
status = recv(rth->fd, resp, sizeof(resp), MSG_DONTWAIT|MSG_PEEK);
if (status < 0) {
if (errno == EAGAIN)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment