Skip to content
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

Unable increase the idle time after connection is established #11

Open
dharanidharandharmasivam opened this issue Nov 28, 2023 · 0 comments

Comments

@dharanidharandharmasivam

Version

2.0.0

Platforms

Android, iOS

Device Model

Moto, emulator

flutter info

[√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.19045.3693], locale en-US)
    • Flutter version 3.7.12 on channel stable at C:\flutter-sdk\flutter_windows_3.7.12-stable\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (7 months ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\DharanidharanDharmas\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] VS Code (version 1.84.0)
    • VS Code at C:\Users\DharanidharanDharmas\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.76.0

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19045.3693]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 119.0.6045.160
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 119.0.2151.72

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

How to reproduce?

  1. If a connection is established, it will be closed after 15 seconds, and the idle time cannot be extended. In my situation, multiple requests are made to the same domain and require a persistent connection, meaning the connection should be maintained even after 15 seconds. Is there another property that can be used to achieve this?
  2. Prior to establishing a connection, if multiple requests are made, each request takes time to establish a connection. Is there a way to avoid this and reduce the time taken for all requests? For instance, in the screenshot below, 4 requests are made to the same domain before the connection is established, and each request takes around 2 seconds to establish a connection. Is there a way to decrease this time?

image

But once the connection is established, for other requests it didn't consume much time to establish the connection, here its reused.
image

Logs

No response

Example code (optional)

No response

Contact

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant