Skip to content

Commit c865b20

Browse files
tcp: removed uneccesary old print
1 parent fc56de0 commit c865b20

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/net/tcp/connection.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,21 +171,6 @@ void Connection::offer(size_t& packets)
171171
// write until we either cant send more (window closes or no more in queue),
172172
// or we're out of packets.
173173

174-
static bool congested=false;
175-
if (!can_send())
176-
{
177-
if (sendq_remaining() > 0)
178-
{
179-
printf("Window_blocked %d data %zu empty packets sw=%ld fs=%ld WND=%d\n",sendq_remaining(),packets,(int64_t)send_window(), (int64_t)flight_size(),cb.SND.WND);
180-
congested=true;
181-
}
182-
}
183-
if (can_send() && congested)
184-
{
185-
printf("Window released congestion removed %zu packets\n",packets);
186-
congested=false;
187-
}
188-
189174
while(can_send() and packets)
190175
{
191176
auto packet = create_outgoing_packet();

0 commit comments

Comments
 (0)