-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conn: synchronize Conn.Close() and Conn.Listen() workers
With the 'new' runtime poller introduced in Go 1.12, closing a Conn now unblocks any blocked calls to netlink.Conn.Receive(). This patch handles closed Receive()s and introduces a WaitGroup to conntrack.Conn that allows Conn.Close() to wait for all workers to exit. See mdlayher/netlink#119.
- Loading branch information
Showing
3 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters