From 78154486cef6ce8b8ecb4fa153633bd73ba8d2d6 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Sun, 20 Dec 2020 12:39:43 -0500 Subject: [PATCH] netlink: document that Conn.Close bug #162 is fixed Signed-off-by: Matt Layher --- conn.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/conn.go b/conn.go index 6ea8a28f..8379c4fb 100644 --- a/conn.go +++ b/conn.go @@ -97,13 +97,7 @@ func (c *Conn) debug(fn func(d *debugger)) { fn(c.d) } -// Close closes the connection. -// -// Due to a bug https://github.com/mdlayher/netlink/issues/162, Close currently -// cannot unblock concurrent calls to Send or Receive. As a stop-gap measure, -// call SetDeadline with a time in the past such as time.Unix(1, 0) in a -// different goroutine to unblock a long-running Receive loop. The intent is to -// fix this issue in v1.2.0. +// Close closes the connection and unblocks any pending read operations. func (c *Conn) Close() error { // Close does not acquire a lock because it must be able to interrupt any // blocked system calls, such as when Receive is waiting on a multicast