Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flush: fix error leak when flushing multiple messages
When you flush multiple messages/ops on a connection, and if flush fails to apply, the netlink connection returns errors per command. Since we are returning on noticing the first error, the rest of the errors are buffered and leaks into the result of next flush. This pull request invokes `conn.Receive()` * number of messages to drain any buffered errors in the connection.
- Loading branch information