resetSharedProviderHttpClient function
void
resetSharedProviderHttpClient()
Drops the shared keep-alive client: the NEXT sharedProviderHttpClient
call builds a fresh client and pool (gh-1395 AC5). Hygiene, not a
correctness fix — the eviction is flag-gated through
maybeEvictProviderPool (FA_POOL_EVICTION) and every existing
connection-level failure class already self-heals without it (the
stale_keepalive exoneration).
Implementation
void resetSharedProviderHttpClient() {
_sharedProviderClient?.close();
_sharedProviderClient = null;
}