Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
03598c4
)
tcp: force zero window on full rx fifo
30/20830/3
author
Florin Coras
<fcoras@cisco.com>
Wed, 24 Jul 2019 17:27:20 +0000
(10:27 -0700)
committer
Damjan Marion
<dmarion@me.com>
Fri, 30 Aug 2019 13:17:43 +0000
(13:17 +0000)
Type: feature
Change-Id: I7c5684a9f88e56fd62d83a59c14c4e4a6f096b89
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/tcp/tcp_output.c
patch
|
blob
|
history
diff --git
a/src/vnet/tcp/tcp_output.c
b/src/vnet/tcp/tcp_output.c
index
239f603
..
eb48158
100644
(file)
--- a/
src/vnet/tcp/tcp_output.c
+++ b/
src/vnet/tcp/tcp_output.c
@@
-122,7
+122,10
@@
tcp_update_rcv_wnd (tcp_connection_t * tc)
*/
available_space = transport_max_rx_enqueue (&tc->connection);
if (PREDICT_FALSE (available_space < tc->rcv_opts.mss))
- available_space = 0;
+ {
+ tc->rcv_wnd = 0;
+ return;
+ }
/*
* Use the above and what we know about what we've previously advertised