-
Notifications
You must be signed in to change notification settings - Fork 806
Closed
Description
code:
package main
import (
"net/http"
_ "net/http/pprof"
"time"
"github.com/vishvananda/netlink"
)
func main() {
ch := make(chan netlink.RouteUpdate, 2)
done := make(chan struct{})
netlink.RouteSubscribe(ch, done)
time.Sleep(time.Second)
close(done)
println("closed")
http.ListenAndServe(":8080", nil)
}documentation says: close the 'done' chan to stop subscription.
pprof result:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
