Custom timeouts for different use cases

Created on 14 September 2023, about 1 year ago

Problem/Motivation

In πŸ› Mailchimp client does not respect the api_timeout anymore Fixed , szeidler reported that the api_timeout setting was no longer working. That has been fixed at a basic level but additional suggestions included

Because of #2768455: High cURL timeout can lead to Denial of Service β†’ , when the api_timeout was initially introduced it's not recommended to set the timeout to a high value. Especially when you use a subscription block and the Mailchimp server responds slow (and Drupal cache is cleared).

Therefore it might be better, if could configure overwrite a custom timeout for different use-cases. For subscriptions blocks a short timeout is preferable, but when using extensive API calls like the ones described above, we like to set a higher one. Currently there is no possibility to do so, even on the mailchimp-api-php side, because the guzzle client is hidden behind a private property.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

General

Created by

πŸ‡ΊπŸ‡ΈUnited States xenophyle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024