ishaaaan17 commented on code in PR #13934:
URL: https://github.com/apache/trafficserver/pull/13934#discussion_r4570198792
##########
plugins/header_rewrite/header_rewrite.cc:
##########
@@ -629,27 +627,27 @@ TSPluginInit(int argc, const char *argv[])
Dbg(pi_dbg_ctl, "Successfully loaded global config file %s", argv[i]);
got_config = true;
} else {
- TSError("[%s] failed to parse configuration file %s", PLUGIN_NAME,
argv[i]);
+ delete conf;
+ TSFatal("[%s] failed to parse configuration file %s", PLUGIN_NAME,
argv[i]);
Review Comment:
added `test_header_rewrite_global_bad_config` in
`test_header_rewrite_bad_set_body.py`. it loads `header_rewrite.so
bad_global.conf` through `ats.plugin_config` with duplicate modifiers
(`[AND,AND]`), and checks that ATS aborts the startup with `failed to parse
configuration file bad_global.conf`.
pushed in b843c6ab.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]