Property

SoupWebsocketConnection:max-total-message-size

unstable since: 3.8

Declaration

property max-total-message-size: guint64 [ read, write, construct ]

Description [src]

The maximum size for incoming messages.

Set to a value to limit the total message size, or 0 to not limit it.

soup_server_add_websocket_handler() will set this to a nonzero default value to mitigate denial of service attacks. Clients must choose their own default if they need to mitigate denial of service attacks. You also need to set your own default if creating your own server SoupWebsocketConnection without using SoupServer.

Each message may consist of multiple packets, so also refer to WebSocketConnection:max-incoming-payload-size.

Type: guint64
Available since:3.8

Flags

Readableyes
Writableyes
Constructyes
Construct onlyno