-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dio REST call response is slow than Postman #2100
Comments
Please try |
@AlexV525 Looks simmilar with |
Thanks for the verification. There is nothing Dio can do here, which is likely an underlying platform issue. |
Thanks @AlexV525 for the confirmation, FYI, I posted the same for flutter community as well. |
You can try to use the native_dio_adapter which uses the cronet client on Android via FFI. That might be more performant. |
This is mostly an issue with the slow TLS implementation in Dart: dart-lang/sdk#54752 |
Package
dio
Version
5.3.2
Operating-System
Android, iOS
Output of
flutter doctor -v
Dart Version
3.1.0
Steps to Reproduce
I experimented with various APIs, and the outcomes were consistently similar, with Dio resulting in approximately three times longer response times, See the differences below:
Expected Result
Do Rest call response time should correct time that can be measure with postman
Actual Result
Geetting Api response time approx 3x longer than Postman
The text was updated successfully, but these errors were encountered: