HTTP retries

The customization allows you to configure HTTP request retries.

In this section, you configure how and when the GBC will resend the HTTP request on socket or HTTP error. The number of times the request can be resent is set by the $theme-network-retry-timeout variable. The default value is defined in an array, where the number of elements represents the number of attempts and each element is the delay in seconds before retrying. The default value is [1, 1, 1, 2, 2, 2, 4, 4, 4].

The GBC will read the value from left to right, waiting the number of seconds entered between each separator before resending the failed request. This can be useful if your network is not too reliable and sometimes messages may be discarded before reaching GAS or returning to GBC.

The default value "[1, 1, 1, 2, 2, 2, 4, 4, 4]" means on Socket/HTTP error, wait 1s before retrying, then, if the request still fails, wait 1s more, then 1s more, then 2s between each retry for the next three attempts, and finally 4s between each retry for the final three attempts.

This feature increases the time required for the detection of invalid hosts or dead servers, since the initial request will be retried at least 9 times with a total of 21 seconds to wait.