Rare Earth Juejin Tech Community
Dec 1, 2025 · Mobile Development
Why Your IoT App Times Out: Understanding OkHttp Connection Pools and Stale Connections
An Android IoT client repeatedly timed out because OkHttp reused stale TCP connections, leading to EOF and socket reset errors, and the fix was to disable the connection pool after discovering the server's keep‑alive timeout was only a few seconds.
AndroidConnection PoolIoT
0 likes · 5 min read
