Currently, there is no request timeout set in SchemaAppCache::cdnGet() which leads to \Drupal::httpClient()'s default 30 second timeout to be used which leads to blocking the main request that is serving the Drupal page when the schemaapp.com is slow or un-responsive.

Updates needed:
* Add a request timeout to the module's configuration. Default: 30 sec or lower. Sites can lower as needed, example 5 sec.
* Use the request timeout config in SchemaAppCache::cdnGet() when performing the request.

Comments

recrit created an issue. See original summary.

joelcummings’s picture

Assigned: Unassigned » joelcummings
Category: Support request » Feature request
recrit’s picture

joelcummings’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.