Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ns/init_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ var (
initNs netns.NsHandle
initNl *netlink.Handle
initOnce sync.Once
// NetlinkSocketsTimeout represents the default timeout duration for the sockets
NetlinkSocketsTimeout = 3 * time.Second
)

// NetlinkSocketsTimeout represents the default timeout duration for the sockets
const NetlinkSocketsTimeout = 3 * time.Second

// Init initializes a new network namespace
func Init() {
var err error
Expand Down