Description
This feature is a related dart HTTP client, I raised a new feature request in Flutter GitHub ( flutter/flutter#116537). They asked to raise in Dart SDK GitHub as it is a bug in the dart HTTP client.
Target Platform: Android
Target OS version/browser: Android 12+
Devices:
Many Flutter-based Android and iOS apps are very slow during HTTP service calls in the Wifi networks due to failed IPv6 DNS resolution.
As I am requesting this feature as a solution for the three important issues reported by Flutter developers.
- In Android 12+, the REST API calls are very slow in flutter, In WiFi that takes 10 seconds whereas in mobile data it is less than a second flutter/flutter#116477
- Flutter: API Calls are so slow in flutter, taking more than 20s to load with WiFi and less than a sec with Mobile Data flutter/flutter#112285
- Slow HttpClient operation caused by DNS resolution failure on iOS #41451
In essence, we are facing slowness in the API call execution while using Wifi networks due to failed IPv6 DNS resolution, thereafter it fallback to IPv4 DNS resolution. Hence each API call execution is getting delayed a minimum of 10+ seconds.
It would be great If there would be a feature for manually specifying IPv4 or IPv6 versions during HTTP client initialization.
So I request your kind attention on this important issue, as we are developing business-critical applications using Flutter, for iOS/ Android, and Windows.