providerConnectTimeoutForUrl function
The effective connect watchdog for one request URL (the
sendWatchedProviderRequest seam): the per-provider entry wins over
the global effective value, which already folds the section + env.
Implementation
Duration providerConnectTimeoutForUrl(Uri url) {
if (providerTuningRegistry.isEmpty) return effectiveProviderConnectTimeout;
final entry = providerTuningRegistry.forUrl(url);
if (entry == null) return effectiveProviderConnectTimeout;
return entry.connect ?? effectiveProviderConnectTimeout;
}