Skip to content

Extend timeouts#181

Closed
sporkmonger wants to merge 1 commit intobuzzfeed:mainfrom
Remitly:longer-timeouts
Closed

Extend timeouts#181
sporkmonger wants to merge 1 commit intobuzzfeed:mainfrom
Remitly:longer-timeouts

Conversation

@sporkmonger
Copy link
Copy Markdown
Contributor

We're using SSO proxy to sit in the middle of another auth component that blocks waiting for authentication to complete. We need a long timeout to allow the user to finish the authentication flow that SSO is mediating. The timeout needs to at least get us past p99 time-to-complete-authentication and 5 minutes seems to be approximately the sweet spot.

DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
Timeout: 300 * time.Second,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should figure out a way to make this configurable. A default of 300 seconds (much like 30 seconds) is unlikely to be sufficient for everyone's needs.

req.Host = to.Host
}
}
proxy.FlushInterval = 100 * time.Millisecond
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should supply this default since this is configurable per upstream.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That can be dropped, yeah.

@Remitly Remitly closed this by deleting the head repository Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants