From 397d966a0f88555ddf95f30cae1939d05a9f6ac3 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Tue, 20 Nov 2018 15:56:13 +0800 Subject: [PATCH] =?UTF-8?q?#86=20=E4=BF=AE=E6=AD=A3=E5=9C=A8HTTP=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=9C=A8Resume()=E6=93=8D=E4=BD=9C=E5=90=8E=E8=AE=BE?= =?UTF-8?q?=E7=BD=AEHTTP=E5=BA=94=E7=AD=94=EF=BC=8C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E4=B8=A2=E5=BC=83=E5=8E=9F=E5=A7=8BHTTP=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=20*=20=E5=8E=9F=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E7=94=A8=E6=88=B7=E8=B0=83=E7=94=A8resume()?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E6=B2=A1=E6=9C=89=E5=B0=86=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=9A=84user=5Fstream=5Faction=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E5=88=B0=E5=8E=9F=E5=A7=8BHTTP=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=EF=BC=8C=E5=AF=BC=E8=87=B4=E8=AF=A5=E5=8E=9F=E5=A7=8B=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=B2=A1=E6=9C=89=E8=A2=AB=E4=B8=A2=E5=BC=83=EF=BC=8C?= =?UTF-8?q?=E7=8E=B0=E4=BF=AE=E6=AD=A3=E3=80=82@luqiuwen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/protocol/http/src/http_entry.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/protocol/http/src/http_entry.cpp b/plugin/protocol/http/src/http_entry.cpp index 44348ba..e29e6b4 100644 --- a/plugin/protocol/http/src/http_entry.cpp +++ b/plugin/protocol/http/src/http_entry.cpp @@ -392,6 +392,12 @@ enum tfe_stream_action http_connection_entry(const struct tfe_stream * stream, e hs_private->release_lock--; hs_private->suspend_counter++; + /* Retrieve the user's stream action, because the user may set request/response at resume's callback */ + if(hf_private_in->is_user_stream_action_set) + { + hf_private_in->stream_action = hf_private_in->user_stream_action; + } + /* Call user callback, tell user we resume from suspend */ assert(hs_private->resume_tag_singal); hs_private->resume_tag_singal = false;