quic: fix closing of streams
Avoid explicit manipulation of session state and generate closing event if need be. Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I07cda1db08a2673b27b496ea1371b0dfd8e6f98a
This commit is contained in:
Florin Coras
committed by
Damjan Marion
parent
3706636ca0
commit
39a8e16448
@ -784,12 +784,10 @@ quic_on_stream_destroy (quicly_stream_t * stream, int err)
|
||||
quic_stream_data_t *stream_data = (quic_stream_data_t *) stream->data;
|
||||
quic_ctx_t *sctx = quic_ctx_get (stream_data->ctx_id,
|
||||
stream_data->thread_index);
|
||||
session_t *stream_session = session_get (sctx->c_s_index,
|
||||
sctx->c_thread_index);
|
||||
QUIC_DBG (2, "DESTROYED_STREAM: session 0x%lx (%U)",
|
||||
session_handle (stream_session), quic_format_err, err);
|
||||
|
||||
stream_session->session_state = SESSION_STATE_CLOSED;
|
||||
session_transport_closing_notify (&sctx->connection);
|
||||
session_transport_delete_notify (&sctx->connection);
|
||||
|
||||
quic_increment_counter (QUIC_ERROR_CLOSED_STREAM, 1);
|
||||
|
Reference in New Issue
Block a user