session: udp accept session state should be updated by app
Type: fix Signed-off-by: jxm <jiangxiaoming@outlook.com> Change-Id: I6fb2620e7076e1e38a2ab85a70febe614b079e67
This commit is contained in:
@ -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;
|
||||
|
@ -1287,8 +1287,6 @@ session_dgram_accept (transport_connection_t * tc, u32 listener_index,
|
||||
return rv;
|
||||
}
|
||||
|
||||
s->session_state = SESSION_STATE_READY;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user