Stream Settings

stream.auto_close

Abbreviationst a
Accessget/set

Description

This setting is intended for all network related streams:

When false, a stream handle is not reused until it is manually closed. In this case, the stream_poll command returns 2 (remote closed connection) for a stream when the associated client has disconnected. See stream_poll.

When true, a stream handle is automatically reused when closed.

Note: When stream.auto_close is true, TCP/HTTP/WebSocket client/server streams remain open until all RX data has been read. Even if the remote side has closed the connection, the stream remains open until all RX data has been read. In this case, polling the stream returns 2.

Arguments

<0/off/false/1/on/true>

Default

true

Supported Platforms

Get example

> get st a
1
>

Set example

> set st a false
Set OK