Skip to content

Commit 43d4344

Browse files
Merge branch 'tcp_rcvwnd' of github.com:AndreasAakesson/IncludeOS into tcp_rcvwnd
2 parents 39d538e + b01d4de commit 43d4344

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

lib/microLB/micro_lb/balancer.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <net/tcp/stream.hpp>
33

44
#define READQ_PER_CLIENT 4096
5-
#define MAX_READQ_PER_NODE 8192
65
#define READQ_FOR_NODES 8192
76
#define MAX_OUTGOING_ATTEMPTS 100
87
// checking if nodes are dead or not
@@ -155,13 +154,8 @@ namespace microLB
155154
[this] (auto buf) {
156155
// prevent buffer bloat attack
157156
this->total += buf->size();
158-
if (this->total > MAX_READQ_PER_NODE) {
159-
this->conn->close();
160-
}
161-
else {
162-
LBOUT("*** Queued %lu bytes\n", buf->size());
163-
readq.push_back(buf);
164-
}
157+
LBOUT("*** Queued %lu bytes\n", buf->size());
158+
readq.push_back(buf);
165159
});
166160
}
167161

0 commit comments

Comments
 (0)