mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
returned for loop
This commit is contained in:
parent
6d488f15d4
commit
4354704145
|
@ -701,9 +701,9 @@ namespace llarp::quic
|
|||
}
|
||||
}
|
||||
|
||||
auto it = strs.begin();
|
||||
|
||||
while (!strs.empty() && stream_packets < max_stream_packets)
|
||||
{
|
||||
for (auto it = strs.begin(); it != strs.end();)
|
||||
{
|
||||
log::debug(logcat, "Max stream packets: {}\nCurrent stream packets: {}", max_stream_packets, stream_packets);
|
||||
|
||||
|
@ -720,7 +720,7 @@ namespace llarp::quic
|
|||
return ngtcp2_vec{const_cast<uint8_t*>(u8data(buf)), buf.size()};
|
||||
});
|
||||
|
||||
#ifndef NDEBUG
|
||||
#ifndef NDEBUG
|
||||
{
|
||||
std::string buf_sizes;
|
||||
for (auto& b : bufs)
|
||||
|
@ -732,7 +732,7 @@ namespace llarp::quic
|
|||
log::debug(
|
||||
logcat, "Sending {} data for {}", buf_sizes.empty() ? "no" : buf_sizes, stream.id());
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// debug
|
||||
fprintf(
|
||||
|
@ -854,6 +854,7 @@ namespace llarp::quic
|
|||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now try more with stream id -1 and no data: this takes care of things like initial handshake
|
||||
// packets, and also finishes off any partially-filled packet from above.
|
||||
|
|
Loading…
Reference in a new issue