-
-
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
A suggestion regarding the compose method in RequestOptions. #2124
Comments
No. The connect timeout is related to the adapter's implementation. Because the adapter holds inner clients to improve requests, the inner client will be used in requests of the same Dio instance, which shares the same connect timeout setting. |
Just as you mentioned, when utilizing an already established connection for improved performance, the connection timeout set during the request may not be crucial. However, in the scenario of a first-time request initiating a new Fetch, wouldn't it be meaningful to set a connectionTimeout during the request? |
Changing the connect timeout in the base option will also update the setting in the client. |
Thank you for considering my suggestion. If it's not problematic or too challenging, reflecting this would be appreciated. |
I'm marking this as it won't be fixed based on the current design. |
Request Statement
Hello,
I used to use your library without problems,
but I noticed something odd in RequestOptions.
The compose method is supposed to combine options with the base ones,
but I'm wondering why the connection timeout isn't merging properly with the base options."
Would it be possible for my suggestion to better align with the intended meaning of 'compose'?
connectTimeout: baseOpt.connectTimeout,
connectTimeout: connectionTimeout ?? baseOpt.connectTimeout,
Solution Brainstorm
No response
The text was updated successfully, but these errors were encountered: