humanmade / humanmade/altis-core

If Segment API is slow or unavailable client and server side requests can cause PHP timeouts

Open
#749 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
19
Forks
3
Avg merge
4d 13h
Merged PRs (30d)
3

Description

Steps to reproduce:
1. This was observed while saving a long menu of 150 items during a period of slowness with api.segment.com. I'm not sure how best to reproduce that

The current version (and also the latest version) of the Segment PHP SDK use unlimited / default timeouts, meaning a blocking request can run for up to 300s. On Altis this results in a 504 being returned.

Any requests to segment should time out in less than 30s, ideally much less.

Acceptance criteria:

- [ ] ...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.