VrayoSystems / vtrunkd

Open source SD WAN daemon for linux (network link bonding/trunking/aggregation and multichannel VPN daemon).
GNU General Public License v3.0
224 stars 77 forks source link

incorrect cwnd calculation #125

Open grandrew opened 8 years ago

grandrew commented 8 years ago

cwnd_srong

4 chans

000358_2015.12.16-13.55

value affected: cwnd2

grandrew commented 8 years ago

this happens only sometimes

grandrew commented 8 years ago
int get_cwnd2() {
    return shm_conn_info->seq_counter[1] - shm_conn_info->write_buf[1].remote_lws;
}

the problem is that shm_conn_info->write_buf[1].remote_lws fails to update