Cronet Connect Timeout params

64 views
Skip to first unread message

Cheng Han

unread,
May 29, 2023, 1:50:32 PM5/29/23
to QUIC Prototype Protocol Discussion group
Hi Cronet experts,

I am currently using Cronet on Android for QUIC. One of the metrics showing high user cancel rate. I am suspecting this is because of the connect timeout which would be higher than our current settings(15 seconds). 
I am looking for a way to set a timer to manually throw exception if Cronet is using more than 15 seconds to connect to the server. I am reading this email thread https://groups.google.com/a/chromium.org/g/net-dev/c/z0RxgRNpYh4/m/htlrZAwYKgAJ. It's mentioning to include /net API to be able to monitor the request status, which is not possible for us as we don't want to add extra footprint on our APK, we're currently only using `com.google.android.gms:play-services-cronet`.

Wondering if there are another way for us to get the connect time. I am looking at this API: CronetEngine::getGlobalMetricsDeltas (https://developer.android.com/guide/topics/connectivity/cronet/reference/org/chromium/net/CronetEngine.html#public-abstract-byte[]-getglobalmetricsdeltas). I don't have too much knowledge of working with protobuf, wondering would it return connect start time and end time so that I can get the connection time etc? If it would, is there a way to parse this byte array to human readable code?

Thanks!
Cheng








Cheng Han

unread,
May 29, 2023, 3:22:36 PM5/29/23
to QUIC Prototype Protocol Discussion group, Cheng Han
Update...

I was able to decode the binary file to json format by using `protoc --decode_raw < binary_file` to something like:
```
6 {
  1: 0xd3bf6c377e4e7c65
  2: 1529
  3 {
    1: 1500
    2: 1782
  }
}
```

But it still seems hard to parse it without .proto schema, I am not sure what's the meaning of these numbers. It's kinda like reverse engineering job for me. Wondering is there a proto file with defined schema file for this?

Thanks

Nick Harper

unread,
May 30, 2023, 4:15:30 PM5/30/23
to proto...@chromium.org, Cheng Han

--
You received this message because you are subscribed to the Google Groups "QUIC Prototype Protocol Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proto-quic+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/proto-quic/2fd2987e-595b-4aa5-8937-04e6b025ee5an%40chromium.org.
Reply all
Reply to author
Forward
0 new messages