We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d04c6e + 32a9b0d commit 3a335b1Copy full SHA for 3a335b1
1 file changed
src/net/tcp/tcp.cpp
@@ -489,11 +489,12 @@ void TCP::request_offer(Connection& conn) {
489
debug2("<TCP::request_offer> %s requestin offer: uw=%u rem=%u\n",
490
conn.to_string().c_str(), conn.usable_window(), conn.sendq_remaining());
491
492
- if (packets > 0) {
493
- conn.offer(packets);
494
- }
+ // Note: Must be called even if packets is 0
+ // because the connectoin is responsible for requeuing itself (see Connection::offer)
+ conn.offer(packets);
495
}
496
497
+
498
void TCP::queue_offer(Connection& conn)
499
{
500
if(not conn.is_queued() and conn.can_send())
0 commit comments