Handle connection errors more gracefully

Created on 9 April 2024, 9 months ago

Problem/Motivation

We're investigating a potential performance problem to do with a Webform API Handler integration. We would like to be able to tweak the timeout for the Handler's HTTP request in order to sure up the front-end experience while we investigate the root cause.

Steps to reproduce

  1. Create a Webform API handler.
  2. Set it to use an endpoint such as https://httpbin.org/delay/10 (will return after 10 seconds)
  3. Set your PHP timeout to less than the number of seconds specified
  4. Try submitting the form

Proposed resolution

Add configuration options to the Handler to allow setting the timeout to a specific number of seconds.

Remaining tasks

Implement the changes.

User interface changes

None.

API changes

None.

Data model changes

The timeout setting will need to be added to the Handler data model.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇦🇺Australia geoffreyr

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024