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:
2b5bc3b
)
session: avoid spurious closed notifications
96/40096/4
author
Florin Coras
<fcoras@cisco.com>
Tue, 12 Dec 2023 22:01:43 +0000
(14:01 -0800)
committer
Dave Barach
<vpp@barachs.net>
Tue, 9 Jan 2024 17:07:26 +0000
(17:07 +0000)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia98556e7ae61547cf153c78ec085cd4248bee74a
src/vnet/session/session.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/session.c
b/src/vnet/session/session.c
index
9ac9229
..
2afc37a
100644
(file)
--- a/
src/vnet/session/session.c
+++ b/
src/vnet/session/session.c
@@
-1184,6
+1184,9
@@
session_transport_closed_notify (transport_connection_t * tc)
if (!(s = session_get_if_valid (tc->s_index, tc->thread_index)))
return;
+ if (s->session_state >= SESSION_STATE_TRANSPORT_CLOSED)
+ return;
+
/* Transport thinks that app requested close but it actually didn't.
* Can happen for tcp:
* 1)if fin and rst are received in close succession.