You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2017/07/21 08:37:58 UTC
[trafficserver] branch master updated: Update to simplify the case
statement
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 47a59f0 Update to simplify the case statement
47a59f0 is described below
commit 47a59f00d2e3d223411a07048a959b95ba9405e8
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Jul 20 17:13:02 2017 +0200
Update to simplify the case statement
---
proxy/http/HttpSM.cc | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 10741a7..ea4970a 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -1533,13 +1533,6 @@ HttpSM::handle_api_return()
setup_client_read_request_header();
}
return;
- case HttpTransact::SM_ACTION_API_PRE_REMAP:
- case HttpTransact::SM_ACTION_API_POST_REMAP:
- case HttpTransact::SM_ACTION_API_READ_REQUEST_HDR:
- case HttpTransact::SM_ACTION_API_OS_DNS:
- case HttpTransact::SM_ACTION_API_READ_RESPONSE_HDR:
- call_transact_and_set_next_state(nullptr);
- return;
case HttpTransact::SM_ACTION_API_CACHE_LOOKUP_COMPLETE:
case HttpTransact::SM_ACTION_API_READ_CACHE_HDR:
@@ -1551,7 +1544,13 @@ HttpSM::handle_api_return()
cache_sm.close_read();
transform_cache_sm.close_read();
}
+ // fallthrough
+ case HttpTransact::SM_ACTION_API_PRE_REMAP:
+ case HttpTransact::SM_ACTION_API_POST_REMAP:
+ case HttpTransact::SM_ACTION_API_READ_REQUEST_HDR:
+ case HttpTransact::SM_ACTION_API_OS_DNS:
+ case HttpTransact::SM_ACTION_API_READ_RESPONSE_HDR:
call_transact_and_set_next_state(nullptr);
return;
case HttpTransact::SM_ACTION_API_SEND_REQUEST_HDR:
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].