---
title: "Connection idle timeout"
description: "Understand connection idle timeout."
url: https://docs.icerpc.dev/icerpc/slic-transport/connection-idle-timeout
docs_index: https://docs.icerpc.dev/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.icerpc.dev/llms.txt).

# Connection idle timeout

Understand connection idle timeout.

## Idle timeout

The transport implementation considers the connection lost if it doesn't receive any data within the period defined by the idle timeout. The idle timeout is specified with the [IdleTimeout](https://docs.icerpc.dev/icerpc/slic-transport/connection-establishment.md#connection-establishment-parameters) parameter. Each side of the connection advertises its idle timeout and agrees to use the minimum value during connection establishment.

> **Note**
>
> The default idle timeout is 30 seconds.

Each side of a connection maintains an idle timer that it restarts when it receives data. If this idle timer ever expires, the expired side of the connection considers the connection dead and disposes of this connection immediately.

This idle timeout is comparable (but not identical) to QUIC's [idle timeout](https://www.rfc-editor.org/rfc/rfc9000.html#name-idle-timeout).

## Keeping a connection alive

Slic is responsible for preventing the connection's idle timers from expiring when the application (the upper protocol) doesn't write anything to this connection.

Slic keeps connections alive by sending [Ping](https://docs.icerpc.dev/icerpc/slic-transport/protocol-frames.md#ping-frame) frames. A Slic client connection sends `Ping` frames to the server; a Slic server connection never sends `Ping` frames to the client. When the server receives a `Ping` frame, it restarts its idle timer and sends back a [Pong](https://docs.icerpc.dev/icerpc/slic-transport/protocol-frames.md#pong-frame) frame. The reception of the `Pong` frame in turn restarts the idle timer of the client.
