You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've ran into an issue where we set timeouts, but during high traffic/requests dax seems to not properly timeout.
We setup our dax client as below...
sess:=session.Must(session.NewSession())
cfg:=dax.DefaultConfig()
cfg.Credentials=sess.Config.Credentialscfg.Region=regioncfg.HostPorts= []string{endpoint}
cfg.RequestTimeout=300*time.Millisecondcfg.ReadRetries=1// default is 2cfg.MaxPendingConnectionsPerHost=100// default is 10cfg.DialContext= (&net.Dialer{
Timeout: 300*time.Millisecond,
KeepAlive: 30*time.Second,
}).DialContextclient:=dax.New(cfg)
During peak traffic hours we are seeing dax response take over 3 seconds.
I'm suspecting dial connection to be using context.TODO instead of request context.
We've ran into an issue where we set timeouts, but during high traffic/requests dax seems to not properly timeout.
We setup our dax client as below...
During peak traffic hours we are seeing dax response take over 3 seconds.
I'm suspecting dial connection to be using
context.TODO
instead of request context.https://github.com/aws/aws-dax-go/blob/master/dax/internal/client/tubepool.go#L318
Thank you in advance!
The text was updated successfully, but these errors were encountered: