Settings that affect the way messages are read from a connected socket
Used as a member in struct TcpMsgSessionSettings.
struct MessageReaderSettings
{
ssize_t normalCommitBufferSize;
ssize_t maxMsgSize;
ssize_t maxRecvSize;
};
ssize_t normalCommitBufferSize
The initial size of the read buffer
Default value : 16384 (16KB)
ssize_t maxMsgSize
The upper bound on the size of the body of an individual message (i.e. not including the 4 byte header giving the message size). Therefore it also represents the upper bound on the size of the receive buffer in memory. If the size of the body of a message exceeds this value then a fatal SC_ReadInvalidMessageSize error is raised on the connection. Making this value extremely large could make the machine vulnerable to running out of memory.
Default value : 67108864 (64 MB)
ssize_t maxRecvSize
The upper bound on the size of the receive buffer provided in the receive socket calls.
Default value : 262144 (256kB)