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
Copy file name to clipboardExpand all lines: main.go
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -678,6 +678,9 @@ func main() {
678
678
checkResourceAccessBase=flag.String("check-resource-access-base", "http://check-resource-access", "The base URL for the check-resource-access service.")
679
679
externalID=flag.String("external-id", "", "The external ID to pass to the apps service when looking up the analysis ID.")
680
680
encodedSSOTimeout=flag.String("sso-timeout", "5s", "The timeout period for back-channel requests to the identity provider.")
681
+
encodedReadTimeout=flag.String("read-timeout", "48h", "The maximum duration for reading the entire request, including the body.")
682
+
encodedWriteTimeout=flag.String("write-timeout", "48h", "The maximum duration before timing out writes of the response.")
683
+
encodedIdleTimeout=flag.String("idle-timeout", "5000s", "The maximum amount of time to wait for the next request when keep-alives are enabled.")
681
684
)
682
685
683
686
flag.Var(&corsOrigins, "allowed-origins", "List of allowed origins, separated by commas.")
@@ -715,6 +718,9 @@ func main() {
715
718
log.Infof("Keycloak realm is %s", *keycloakRealm)
716
719
log.Infof("Keycloak client ID is %s", *keycloakClientID)
717
720
log.Infof("Keycloak client secret is %s", *keycloakClientSecret)
721
+
log.Infof("read timeout is %s", *encodedReadTimeout)
722
+
log.Infof("write timeout is %s", *encodedWriteTimeout)
723
+
log.Infof("idle timeout is %s", *encodedIdleTimeout)
718
724
719
725
for_, c:=rangecorsOrigins {
720
726
log.Infof("Origin: %s\n", c)
@@ -739,6 +745,22 @@ func main() {
739
745
log.Fatalf("invalid timeout duration for back-channel requests to the IdP: %s", err.Error())
740
746
}
741
747
748
+
// Decode the timeout durations for the HTTP server.
0 commit comments