max_line_length Property
This property is the size of an internal buffer which holds received data while waiting for an EOL string.
Syntax
def get_max_line_length(connection_id: int) -> int: ... def set_max_line_length(connection_id: int, value: int) -> None: ...
Default Value
2048
Remarks
This property is the size of an internal buffer which holds received data while waiting for an eol string.
If an eol string is found in the input stream before maxlinelength bytes are received, the ondatain event is fired with the EOL parameter set to True, and the buffer is reset.
If no eol is found, and maxlinelength bytes are accumulated in the buffer, the ondatain event is fired with the EOL parameter set to False, and the buffer is reset.
The minimum value for maxlinelength is 256 bytes. The default value is 2048 bytes.
The connection_id parameter specifies the index of the item in the array. The size of the array is controlled by the connection_count property.