Problem
The connectTimeout in NetworkModule.kt is set to 1 second:
.connectTimeout(1, TimeUnit.SECONDS)
However, in OkHttp, connectTimeout covers both TCP connection and TLS handshake. When accessing TeslamateApi via Tailscale Funnel (HTTPS), the TLS handshake takes ~2 seconds:
tcp_connect: 0.005s
ssl_handshake: 2.025s ← exceeds 1s timeout
total: 2.57s
This causes the app to silently fail to connect — no error is shown, it just doesn't load.
Steps to reproduce
- Deploy TeslamateApi behind Tailscale Funnel (HTTPS)
- Enter the Funnel URL in Matedroid settings
- App fails to connect
Fix
Increase connectTimeout to at least 5 seconds:
.connectTimeout(5, TimeUnit.SECONDS)
Or make it configurable in settings.
Problem
The
connectTimeoutinNetworkModule.ktis set to 1 second:However, in OkHttp,
connectTimeoutcovers both TCP connection and TLS handshake. When accessing TeslamateApi via Tailscale Funnel (HTTPS), the TLS handshake takes ~2 seconds:This causes the app to silently fail to connect — no error is shown, it just doesn't load.
Steps to reproduce
Fix
Increase
connectTimeoutto at least 5 seconds:Or make it configurable in settings.