• Wei Wang's avatar
    tcp: change pingpong threshold to 3 · 4a41f453
    Wei Wang authored
    In order to be more confident about an on-going interactive session, we
    increment pingpong count by 1 for every interactive transaction and we
    adjust TCP_PINGPONG_THRESH to 3.
    This means, we only consider a session in pingpong mode after we see 3
    interactive transactions, and start to activate delayed acks in quick
    ack mode.
    And in order to not over-count the credits, we only increase pingpong
    count for the first packet sent in response for the previous received
    packet.
    This is mainly to prevent delaying the ack immediately after some
    handshake protocol but no real interactive traffic pattern afterwards.
    Signed-off-by: default avatarWei Wang <weiwan@google.com>
    Signed-off-by: default avatarYuchung Cheng <ycheng@google.com>
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4a41f453
inet_connection_sock.h 11 KB