Commit 9d54a3d5 authored by jan.koester's avatar jan.koester
Browse files

remove debug out

parent 87c0ab01
Loading
Loading
Loading
Loading
+0 −25
Changes for src/quic.cpp: 0 added lines, 25 removed lines.
Original line number Diff line number Diff line
@@ -3462,7 +3462,6 @@ void quic::sendStreamData(uint64_t stream_id, const std::vector<uint8_t>& data,
    QUIC_DBG("sendStreamData: sid=%lu data_len=%zu fin=%d", (unsigned long)stream_id, data.size(), (int)fin);

    if (_conn_state.load() != ConnectionState::Connected && !_handshake_complete) {
        fprintf(stderr, "[QUIC-SEND] NOT connected, returning early\n");
        return;
    }

@@ -3470,17 +3469,6 @@ void quic::sendStreamData(uint64_t stream_id, const std::vector<uint8_t>& data,
        return;
    }

    {
        auto& s = _streams[stream_id];
        fprintf(stderr, "[QUIC-SEND] sid=%lu data_len=%zu conn_max_remote=%lu conn_sent=%lu "
                "stream_max_remote=%lu stream_off=%lu peer_bidi_local=%lu peer_bidi_remote=%lu\n",
                (unsigned long)stream_id, data.size(),
                (unsigned long)_max_data_remote, (unsigned long)_data_sent,
                (unsigned long)s.max_data_remote, (unsigned long)s.send_offset,
                (unsigned long)_peer_initial_max_stream_data_bidi_local,
                (unsigned long)_peer_initial_max_stream_data_bidi_remote);
    }

    // Maximum QUIC datagram size minus short header overhead:
    //   1 (flags) + dcid_len + 4 (PN) + 16 (GCM tag) + frame header (~11 max)
    const size_t header_overhead = 1 + _remote_cid.size() + 4 + 16;
@@ -3539,22 +3527,9 @@ void quic::sendStreamData(uint64_t stream_id, const std::vector<uint8_t>& data,
            }

            if (++fc_stalls > MAX_FC_STALLS) {
                fprintf(stderr, "[QUIC-SEND] FC stall TIMEOUT sid=%lu sent=%zu/%zu "
                         "conn_sent=%lu conn_max=%lu stream_off=%lu stream_max=%lu\n",
                         (unsigned long)stream_id, buf_offset, data.size(),
                         (unsigned long)_data_sent, (unsigned long)_max_data_remote,
                         (unsigned long)stream.send_offset, (unsigned long)stream.max_data_remote);
                break;
            }

            if (fc_stalls % 1000 == 1) {
                fprintf(stderr, "[QUIC-SEND] FC stall #%d sid=%lu sent=%zu/%zu "
                         "conn_sent=%lu conn_max=%lu stream_off=%lu stream_max=%lu\n",
                         fc_stalls, (unsigned long)stream_id, buf_offset, data.size(),
                         (unsigned long)_data_sent, (unsigned long)_max_data_remote,
                         (unsigned long)stream.send_offset, (unsigned long)stream.max_data_remote);
            }

            // Process incoming datagrams to receive MAX_DATA / MAX_STREAM_DATA
            pumpIncoming();
            std::this_thread::sleep_for(std::chrono::milliseconds(1));