Skip to content

Commit

Permalink
Pass missing dial timeout option (#812)
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Glazychev <[email protected]>
  • Loading branch information
glazychev-art authored Mar 25, 2024
1 parent daa3eb1 commit d391ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/networkservice/chains/forwarder/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, vppConn
authorizeServer: authorize.NewServer(authorize.Any()),
authorizeMonitorConnectionServer: authmonitor.NewMonitorConnectionServer(authmonitor.Any()),
clientURL: &url.URL{Scheme: "unix", Host: "connect.to.socket"},
dialTimeout: time.Millisecond * 200,
dialTimeout: time.Millisecond * 300,
domain2Device: make(map[string]string),
}
for _, opt := range options {
Expand All @@ -100,10 +100,12 @@ func NewServer(ctx context.Context, tokenGenerator token.GeneratorFunc, vppConn
registryrecvfd.NewNetworkServiceEndpointRegistryClient(),
registrysendfd.NewNetworkServiceEndpointRegistryClient(),
),
registryclient.WithDialTimeout(opts.dialTimeout),
registryclient.WithDialOptions(opts.dialOpts...),
)
nsClient := registryclient.NewNetworkServiceRegistryClient(ctx,
registryclient.WithClientURL(opts.clientURL),
registryclient.WithDialTimeout(opts.dialTimeout),
registryclient.WithDialOptions(opts.dialOpts...))

ikev2Key, err := ipsec.GenerateRSAKey()
Expand Down

0 comments on commit d391ce1

Please sign in to comment.