summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-08-25 18:30:30 +0800
committerliuxueli <[email protected]>2023-08-25 18:30:30 +0800
commita7d76dda73ab097d056abf464c653d1798359c47 (patch)
treed0be3815dfea0c71c5631a22ae2363652c80cb21
parent4d731800bf93d744d8cd669cc3e78227566ada62 (diff)
TSG-16626: 收到UDP Close状态,若未调用过业务层则不需要通知业务层close状态v2.0.9
-rw-r--r--src/quic_entry.cpp8
1 files 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;