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:
87d48ad
)
session: accept notifies for sessions in created state
68/32168/2
author
Florin Coras
<fcoras@cisco.com>
Thu, 29 Apr 2021 18:55:23 +0000
(11:55 -0700)
committer
Florin Coras
<florin.coras@gmail.com>
Thu, 29 Apr 2021 18:52:17 +0000
(18:52 +0000)
Makes sure we don't notify apps of sessions that are closing or multiple
times for the same session.
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I07145e5e00bbe8eb1df2946059459e9fe05cfeb7
src/vnet/session/session.c
patch
|
blob
|
history
diff --git
a/src/vnet/session/session.c
b/src/vnet/session/session.c
index
5c45cf2
..
7fe35c2
100644
(file)
--- a/
src/vnet/session/session.c
+++ b/
src/vnet/session/session.c
@@
-1133,6
+1133,8
@@
session_stream_accept_notify (transport_connection_t * tc)
app_wrk = app_worker_get_if_valid (s->app_wrk_index);
if (!app_wrk)
return -1;
+ if (s->session_state != SESSION_STATE_CREATED)
+ return 0;
s->session_state = SESSION_STATE_ACCEPTING;
if (app_worker_accept_notify (app_wrk, s))
{