Inspirel banner

Programming Distributed Systems with YAMI4

4.3.6 TCP Keepalive

The keepalive option enables the TCP internal connection monitoring mechanism that helps detect broken connections. This option might be useful in combination with connection event reporting in those systems where early reaction to broken connection is essential.

This option can be particularly useful when combined with connection event notifications, so that detection of closed stream is immediately propagated to the user code.

Property name: "tcp_keepalive".

Property type: boolean.

Default value: false.