• Tatsuhiro Tsujikawa's avatar
    nghttpx: Attempt to improve HTTP/2 backend connection check · 41e26618
    Tatsuhiro Tsujikawa authored
    It turns out that writing successfully to network is not enough.
    After apparently successful network write, read fails and then we
    first know network has been lost (at least my android mobile network).
    In this change, we say connection check is successful only when
    successful read.  We already send PING in this case, so we just wait
    PING ACK with short timeout.  If timeout has expired, drop connection.
    Since waiting for PING ACK could degrade performance for fast reliably
    connected network, we decided to disable connection check by default.
    Use --backend-http2-connection-check to enable it.
    41e26618
shrpx_http2_session.h 5.6 KB