hundreds-zoo-95288
11/18/2024, 7:53 PMbrief-egg-61061
11/18/2024, 7:53 PMbrief-egg-61061
11/18/2024, 7:53 PMreadTimeout
and writeTimeout
parameters in the Data Source Name (DSN). For example: <mysql://user:password@tcp(host:123)/database?parseTime=true&readTimeout=30s&writeTimeout=30s>
These parameters allow you to set I/O read and write timeouts respectively. The value must be a decimal number with a unit suffix ("ms", "s", "m", "h") [Self-hosted Database](https://www.ory.sh/docs/self-hosted/deployment#mysql). 2. For Ory Hydra's Go client: You can set a custom timeout when creating the HTTP client: go skipTLSClient := &http.Client{ Transport: &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, }, Timeout: 30 * time.Second, // Set your desired timeout here }
This allows you to set a custom timeout for all requests made with this client [Ory Hydra Go](https://www.ory.sh/docs/hydra/self-hosted/go#skip-tls-verification). 3. For Ory Oathkeeper's remote authorizers: You can configure the retry
settings in the authorizer configuration: yaml authorizers: remote: config: retry: give_up_after: "1m" max_delay: "100ms"
The max_delay
parameter sets the maximum time to wait between retries and the maximum service response time [Oathkeeper Pipeline Authorizers](https://www.ory.sh/docs/oathkeeper/pipeline/authz#remote). Remember to adjust these values according to your specific needs and the component you're working with. Always test thoroughly after making changes to ensure your system behaves as expected with the new timeout settings.