Skip to content

Conversation

@mig5
Copy link
Contributor

@mig5 mig5 commented Mar 30, 2022

Closes #317

This seems to fix the issue experienced in the aforementioned ticket, for me, and hopefully the original author. No more intermittent 502s from the ALB once I raised Vouch's timeouts to 65s (because the ALB's idle timeout is 60s and the FIN/RST issue occurs as described here). I am using the env vars so I know that works too.

As soon as I adjust the IdleTimeout value back to 15 (the default), the problem re-appears in my setup. That's the best proof of test I can offer... it might be hard for you to reproduce without a similar setup.

I am keeping the default timeouts to 15s to maintain the status quo. From my reading, when IdleTimeout was not set (as it wasn't previously in Vouch), Go uses the value of ReadTimeout. So in effect, I don't think this will cause any issues for existing installations.

P.S after I built this, I had changes to versions/packages in go.mod / go.sum. At a glance, they looked like automatic upgrades to dependency packages pulled in via my ./do.sh goget. I have excluded those changes here, as I don't consider them related to the change, but let me know if you want me to add them in.

mig5 and others added 5 commits April 1, 2022 17:34
The comment for `allowAllUsers` said `authenticate at Gitea`. Change it to say `authenticate with Google` (`with` seemed more appropriate than `at` here).

The comment for `callback_urls` said `callbac_urls`. I suppose that was a typo.
@bnfinet bnfinet merged commit 37ac8ab into vouch:master Apr 8, 2022
@bnfinet
Copy link
Member

bnfinet commented Apr 9, 2022

@mig5 thanks for improving VP!

@mig5 mig5 deleted the configurable_timeouts branch April 11, 2022 07:52
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.

Add IdleTimeout configuration to support use with (more) loadbalancers

3 participants