summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjxm <jiangxiaoming@outlook.com>2021-06-18 03:42:31 +0000
committerjxm <jiangxiaoming@outlook.com>2021-06-18 03:49:36 +0000
commit5de9772c14462b584ebae90017a69c2ef88e9073 (patch)
treeacdbcdd001b0680ab5971c881c124222ac6d5c02 /src
parentda78c5abc8a862d33ebd9b0e89ae781f1ea37532 (diff)
session: udp accept session state should be updated by app
Type: fix Signed-off-by: jxm <jiangxiaoming@outlook.com> Change-Id: I6fb2620e7076e1e38a2ab85a70febe614b079e67
Diffstat (limited to 'src')
-rw-r--r--src/plugins/quic/quic.c1
-rw-r--r--src/vnet/session/session.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index 63ff9847362..26f2216a3d8 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -1929,6 +1929,7 @@ quic_udp_session_accepted_callback (session_t * udp_session)
ctx->ckpair_index = lctx->ckpair_index;
quic_acquire_crypto_context (ctx);
udp_session->opaque = ctx_index;
+ udp_session->session_state = SESSION_STATE_READY;
/* TODO timeout to delete these if they never connect */
return 0;
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index a60735d712c..05712181ab0 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -1287,8 +1287,6 @@ session_dgram_accept (transport_connection_t * tc, u32 listener_index,
return rv;
}
- s->session_state = SESSION_STATE_READY;
-
return 0;
}