Closed byte0o closed 2 years ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Kudos, SonarCloud Quality Gate passed!
Makes sense! Thanks a lot!
Latest forum discussions:
This function is called when the outhttp plugin is registered in the loop, passing a pointer type to &Settings.OutputHTTPConfig https://github.com/buger/goreplay/blob/master/plugins.go#L145
for _, options := range Settings.OutputHTTP { plugins.registerPlugin(NewHTTPOutput, options, &Settings.OutputHTTPConfig) }
parsing the address to generate the url directly overrides the &Settings.OutputHTTPConfig.url field,which will cause multiple calls to overwrite the same &Settings.OutputHTTPConfig.url field https://github.com/buger/goreplay/blob/master/output_http.go#L71
config.url, err = url.Parse(address)
Multiple HTTPOutputs point to the same &Settings.OutputHTTPConfig, resulting in the last --output-http parameter value overwriting the previously set value. https://github.com/buger/goreplay/blob/master/output_http.go#L106
o.config = config