Hi, i'm a user of Cronet, there are two issues in my use of the CronetHttpURLConnection as follows:--Q1, if my server doesn't return any data after the connection is established, I directly call getResponseCode() and it will always block.Declares that the above screenshot code is the old version, the latest mainline version has the same logic.Does the block meet expectation in my test scenario? Does it need to be controlled by readtimeout here?Q2, why don't we do a http to https redirect, since our Cronethttpurlconnection can handle both http and https.Is this meant to align with the native HttpURLConnection and HttpsURLConnection? If I want to do different protocol redirects, should I reopen a CronetHttpURLConnection?Could you please kindly help to explain? Thanks!Best Wishes,Wang Wang
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/5df68980-f1ca-4376-935c-d5d128d8767d%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
I would like to explain again the specific scenario of the getResponseCode() block, that is, the connection has been established successfully, but the server does not reply to any header or body data. In this case if I want to disconnect this connection as soon as possible, is it desirable to control it through ReadTimeout?
Redirect related issues I already understand, and I'm willing to share with you that we are also using Cronet's UrlRequest, as you said UrlRequest has a good experience in terms of ease of use and performance.
--
You received this message because you are subscribed to the Google Groups "net-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+unsubscribe@chromium.org.
To post to this group, send email to net...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/net-dev/ae662c46-00bf-4ce8-9409-2697238b7667%40chromium.org.
Yes, if you setReadTimeout(), the value should be respected by CronetHttpURLConnection. If not, please file a bug on https://crbug.com, and I will look into it.
Is there a reason that you are also using CronetHttpURLConnection?
To unsubscribe from this group and stop receiving emails from it, send an email to net-dev+u...@chromium.org.