TLS connections stall for 30+ seconds on cold start after Conscrypt Mainline update to 361331440 (Android 16)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 領域
- networking, security
調査の方向性
まず、Conscrypt 361331440 を使用して Android 16 でコールドスタート時の停止を再現し、361153320 と比較します。レポートに記載されている OkHttp/Conscrypt TLS パスに焦点を当て、Google connectivity-check の HEAD リクエストとタイミングの証拠をプローブとして使用します。TLS 接続が 30 秒の遅延なしに、通常の WiFi の時間内で確立されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
After the Conscrypt Mainline module auto-updated to version 361331440 (delivered via Google Play System Update on April 5, 2026), all TLS connections stall for approximately 30 seconds on app cold start. The issue affects every HTTPS request — including simple HEAD requests to connectivitycheck.gstatic.com — ruling out any server-side cause.
The issue does not occur on a device with the older Conscrypt version 361153320.
Environment
Affected device (reproduces):
- Fairphone 6 (FP6), Android 16 (API 36)
- Build:
FP6.QREL.16.48.0 - Security patch: 2026-02-05
- Conscrypt module: 361331440 (updated 2026-04-05)
Control device (works fine):
- Pixel 7 (panther), Android 16 (API 36)
- Build:
CP1A.260305.018 - Security patch: 2026-03-05
- Conscrypt module: 361153320
App environment:
- React Native 0.81.5 (Expo SDK 54)
- OkHttp (bundled with React Native)
- targetSdkVersion 36
Steps to Reproduce
- Have a device with Conscrypt version
361331440(delivered via April 2026 Google Play System Update) - Cold-start the app
- Observe that all HTTPS connections (fetch/OkHttp) fail or hang for ~10-15 up to 30 seconds before succeeding
Evidence
Affected device (Fairphone 6, Conscrypt 361331440)
Every probe — including HEAD requests to Google's own connectivity check endpoint — aborts after 5 seconds (JS-side timeout). The underlying tRPC fetch hangs for 30+ seconds before finally completing:
[boot-diag] === Boot diagnostics start === (+46ms)
[boot-diag] netinfo.initial: +233ms connected=true internetReachable=true type=wifi
[boot-diag] fetch: start https://api-staging.ovalbrief.com/trpc/presidents.list...
[boot-diag] probe[1].google: ERR Aborted 5020ms (+5066ms)
[boot-diag] probe[1].api: ERR Aborted 5020ms (+5066ms)
[boot-diag] probe[2].google: ERR Aborted 5024ms (+7082ms)
[boot-diag] probe[2].api: ERR Aborted 5024ms (+7082ms)
[boot-diag] probe[3].google: ERR Aborted 5023ms (+9087ms)
... (all 15 probes abort identically)
[boot-diag] probe[15].google: ERR Aborted 5027ms (+33152ms)
[boot-diag] probe[15].api: ERR Aborted 5027ms (+33152ms)
[boot-diag] fetch: done status=200 +63834ms ...presidents.list ← 64 seconds!
[boot-diag] fetch: done status=200 +32215ms ...orders.list ← 32 seconds!
What We've Ruled Out
| Theory | Evidence | Status |
|---|---|---|
| Server-side issue | google.com HEAD requests also fail | ❌ Ruled out |
| OkHttp configuration | Custom OkHttpClientFactory with 15s connect timeout: no change | ❌ Ruled out |
| HTTP/2 multiplexing | Forced HTTP/1.1 via protocols(listOf(Protocol.HTTP_1_1)): no change |
❌ Ruled out |
| App code regression | No code changes; issue appeared after Conscrypt auto-update | ❌ Ruled out |
| Android OS update | OS build unchanged since Feb; only Conscrypt Mainline module updated April 5 | ❌ Ruled out |
| WiFi/network issue | NetInfo reports connected + internetReachable=true; Chrome works fine on same WiFi | ❌ Ruled out |
| DNS resolution | Both IP-based and domain-based requests fail identically | ❌ Ruled out |
Key Observations
-
NetInfo (Android ConnectivityManager) reports the network is fully connected and internet-reachable during the entire stall period. The OS network stack is functional.
-
expo-updates (which uses its own native HTTP client, not OkHttp) successfully downloaded and applied an OTA update during the hang. This confirms the stall is specific to the TLS path used by OkHttp/Conscrypt, not the entire network stack.
-
The ntfy app (29.7k GitHub stars) reports an identical issue on Android 16: OkHttp stuck in CONNECTING state while HTTP polling works fine. See: https://github.com/binwiederhier/ntfy/issues/1634
-
The stall duration is consistently ~30 seconds, suggesting a hardcoded timeout or retry interval somewhere in the TLS handshake path.
Cross-App Verification
Tested other apps on the affected Fairphone 6 (Conscrypt 361331440):
- Coinbase (React Native, standard OkHttp): hangs on cold start — same behavior as our app
- Discord (React Native, custom native networking layer): works fine — consistent with this being an OkHttp/Conscrypt interaction, not a general Android networking issue
This confirms the issue affects any app using OkHttp's default TLS path through Conscrypt, not just our app.
Impact
This affects any Android app using OkHttp (including all React Native apps) on devices that received the Conscrypt 361331440 update. Cold starts are delayed by 30-60+ seconds, making apps appear completely broken to users.
Expected Behavior
TLS connections should establish within normal timeframes (< 1 second on WiFi) on cold start, as they do with Conscrypt version 361153320.
- 主要言語
- Java
- スター
- 1.4k
- フォーク
- 332
- 平均マージ
- 2日 56分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/conscrypt のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 3/5 半日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 49/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
google/conscrypt の issue をすべて見る
似ている issue
-
beginner difficulty: easy documentation good first issue hacktoberfest help wanted observability size/S up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
dmitriy-iliyov/spring-transactional-outbox#82 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
RamazanKara/nightjar#264 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
netty/netty#18628 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
apache/flink-agents#1500 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
sylvainmetayer/planning-equipes#495 ·
メンテナーはふだん 1 日以内に返信