Skip to content

Commit

Permalink
Merge pull request #1797 from OpenConext/feature/add-configurable-cli…
Browse files Browse the repository at this point in the history
…ent-timeout

Add configurable client timeout
  • Loading branch information
pablothedude authored Jan 30, 2025
2 parents c374a02 + e824cf7 commit 9d09b65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ parameters:
api.users.deprovision.username: lifecycle
api.users.deprovision.password: secret

##########################################################################################
## CLIENT SETTINGS
##########################################################################################
## Currently this is used for the outgoing requests with the PDP and AA client
http_client.timeout: 10

##########################################################################################
## PDP SETTINGS
##########################################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ services:
# Verify CAs for certificates for prod, but not for other environments
# as we are working with self signed signatures
verify: "@=service('kernel').getEnvironment() === 'prod'"
timeout: "%http_client.timeout%"

engineblock.authentication.authentication_loop_guard:
class: OpenConext\EngineBlockBundle\Authentication\AuthenticationLoopGuard
Expand Down Expand Up @@ -255,6 +256,7 @@ services:
class: GuzzleHttp\Client
arguments:
- auth: ["%attribute_aggregation.username%", "%attribute_aggregation.password%", "Basic"]
timeout: "%http_client.timeout%"

engineblock.metadata.repository.cached_doctrine:
class: OpenConext\EngineBlock\Metadata\MetadataRepository\CachedDoctrineMetadataRepository
Expand Down

0 comments on commit 9d09b65

Please sign in to comment.