Skip to content

In Dart HTTP Client, an option is required to set the IPv4 or IPv6 for DNS resolution for the developer #50868

Closed
@SijuKJ

Description

@SijuKJ

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.

  1. 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
  2. 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
  3. 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.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ioos-androidtriagedIssue has been triaged by sub team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions