Stream

stream.auto_close

Abbreviation

st a

Access

get/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

1|true|on/0|false|off

where

Default

True

Platforms

Properties

Gecko OS Plugin

Get example

> get st a
1
>

Set example

> set st a false
Set OK