]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/tcp_cubic.c
xnu-2782.20.48.tar.gz
[apple/xnu.git] / bsd / netinet / tcp_cubic.c
index 7e2d00b07e4839aaeb72522d9695fc2e89f2c901..2eb86f1a91e8645e4f21ff5ac4f5fad74b26bfa1 100644 (file)
@@ -161,8 +161,10 @@ tcp_cubic_update(struct tcpcb *tp, u_int32_t rtt)
        float K, var;
        u_int32_t elapsed_time, win;
 
-       VERIFY(tp->t_ccstate->cub_last_max > 0);
        win = min(tp->snd_cwnd, tp->snd_wnd);
+       if (tp->t_ccstate->cub_last_max == 0)
+               tp->t_ccstate->cub_last_max = tp->snd_ssthresh;
+
        if (tp->t_ccstate->cub_epoch_start == 0) {
                /*
                 * This is the beginning of a new epoch, initialize some of