void vortex_channel_set_complete_frame_limit ( VortexChannel channel,
int  max_payload_size 
)

Allows to configure the max complete frame size that can be received having complete flag enabled.

If you have complete flag enabled (vortex_channel_set_complete_flag) to can call this function to stablish a limit. Although it is handy, having complete flag enabled may cause a security risk because is a mechanism that run in background, and may allow an attacker to send a very large message (never completes) until all BEEP peer memory is exhausted.

Parameters
channelThe channel to be configured the complete frame limit.
max_payload_sizeThe maximum payload this peer will accept for this channel until closing the connection if the limit is reached without having a complete message. Use 0 to disable the limit.