---
name: "xprt_adjust_cwnd"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/xprt_adjust_cwnd"
---

# xprt\_adjust\_cwnd(9)

adjust transport congestion window

## NAME

xprt\_adjust\_cwnd - adjust transport congestion window

## SYNOPSIS

**void xprt\_adjust\_cwnd(struct rpc\_xprt \*** *xprt***, struct rpc\_task \*** *task***, int** *result***);**

## ARGUMENTS

*xprt*

pointer to xprt

*task*

recently completed RPC request used to adjust window

*result*

result code of completed RPC request

## DESCRIPTION

The transport code maintains an estimate on the maximum number of out- standing RPC requests, using a smoothed version of the congestion avoidance implemented in 44BSD. This is basically the Van Jacobson congestion algorithm: If a retransmit occurs, the congestion window is halved; otherwise, it is incremented by 1/cwnd when

\- a reply is received and - a full number of requests are outstanding and - the congestion window hasn't been updated recently.

## COPYRIGHT
