| 405 | } |
| 406 | |
| 407 | void HttpStreamTransport::checkHeartbeatTimeout(u32 currentTimeMs) { |
| 408 | u32 timeSinceLastReceived = currentTimeMs - mLastHeartbeatReceived; |
| 409 | if (timeSinceLastReceived >= getTimeout()) { |
| 410 | // Heartbeat timeout - connection is dead |
| 411 | mConnection.onDisconnected(); |
| 412 | disconnect(); |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | bool HttpStreamTransport::processIncomingData() { |
| 417 | if (!isConnected()) { |
nothing calls this directly
no test coverage detected