Skip to content

Commit 3a335b1

Browse files
committed
Merge branch 'dev' of github.com:alfred-bratterud/IncludeOS into dev
2 parents 9d04c6e + 32a9b0d commit 3a335b1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/net/tcp/tcp.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,12 @@ void TCP::request_offer(Connection& conn) {
489489
debug2("<TCP::request_offer> %s requestin offer: uw=%u rem=%u\n",
490490
conn.to_string().c_str(), conn.usable_window(), conn.sendq_remaining());
491491

492-
if (packets > 0) {
493-
conn.offer(packets);
494-
}
492+
// Note: Must be called even if packets is 0
493+
// because the connectoin is responsible for requeuing itself (see Connection::offer)
494+
conn.offer(packets);
495495
}
496496

497+
497498
void TCP::queue_offer(Connection& conn)
498499
{
499500
if(not conn.is_queued() and conn.can_send())

0 commit comments

Comments
 (0)