Commit f9d1b931 authored by jan.koester's avatar jan.koester
Browse files

bugfix

parent 6da30b01
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -5436,7 +5436,12 @@ void quic::closeStream(uint64_t stream_id) {
    // telling the peer, it has no reason to hurry its send, so its own
    // retirement (and the MAX_STREAMS credit that depends on it) may not
    // happen for a long time, or ever. STOP_SENDING asks it to abort now.
    if (!stream.recv_fin) {
    // Only worth sending if we actually asked the peer for something
    // (send_offset > 0) — a stream opened and closed without ever sending
    // data has nothing in flight to stop, and firing STOP_SENDING for every
    // such no-op stream is needless wire traffic (observed to visibly
    // degrade unrelated traffic on the same connection when done in bulk).
    if (!stream.recv_fin && stream.send_offset > 0) {
        stopSending(stream_id);
    }