From a7d76dda73ab097d056abf464c653d1798359c47 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Fri, 25 Aug 2023 18:30:30 +0800 Subject: [PATCH] =?UTF-8?q?TSG-16626:=20=E6=94=B6=E5=88=B0UDP=20Close?= =?UTF-8?q?=E7=8A=B6=E6=80=81=EF=BC=8C=E8=8B=A5=E6=9C=AA=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E8=BF=87=E4=B8=9A=E5=8A=A1=E5=B1=82=E5=88=99=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E9=80=9A=E7=9F=A5=E4=B8=9A=E5=8A=A1=E5=B1=82close?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/quic_entry.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/quic_entry.cpp b/src/quic_entry.cpp index 9fee0d1..0c26e7e 100644 --- a/src/quic_entry.cpp +++ b/src/quic_entry.cpp @@ -177,8 +177,12 @@ extern "C" unsigned char QUIC_ENTRY(const struct streaminfo *pstream, void**pme, state=quic_analyze_entry(pstream, context, thread_seq, a_packet); if(state&APP_STATE_DROPME || pstream->opstate==OP_STATE_CLOSE) - { - quic_call_business_plug(pstream, context, NULL, 0, QUIC_INTEREST_KEY_MASK, a_packet); + { + if(context->link_state==1) + { + quic_call_business_plug(pstream, context, NULL, 0, QUIC_INTEREST_KEY_MASK, a_packet); + } + quic_free_context(pstream, g_quic_param.context_bridge_id, *pme); stream_bridge_async_data_put(pstream, g_quic_param.context_bridge_id, NULL); *pme=NULL;