TCP::setmss

Description

This iRule command sets the TCP max segment size in bytes.
The MSS does not consider the length of any common TCP options.
Users should set MSS to the desired path IP packet size, minus the
IP header length (typically 20 bytes), minus the minimum TCP header
length of 20 bytes.
TCP will automatically apply the length of common options when
partitioning data for delivery.

Syntax

TCP::setmss <mssval>

Examples

# Match clientside MSS to serverside MSS
when SERVER_CONNECTED {
    set cli_mss [clientside { TCP::mss }]
    set svr_mss [TCP::mss]
    if { $cli_mss > $svr_mss } {
        clientside { TCP::setmss $svr_mss }
    }
}