mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Add --output-http-compatibility-mode
Add support for using default Go HTTP client
This commit is contained in:
+6
-3
@@ -25,9 +25,9 @@ type HTTPOutputConfig struct {
|
||||
stats bool
|
||||
workersMin int
|
||||
workersMax int
|
||||
statsMs int
|
||||
workers int
|
||||
queueLen int
|
||||
statsMs int
|
||||
workers int
|
||||
queueLen int
|
||||
|
||||
elasticSearch string
|
||||
|
||||
@@ -35,6 +35,8 @@ type HTTPOutputConfig struct {
|
||||
OriginalHost bool
|
||||
BufferSize int
|
||||
|
||||
CompatibilityMode bool
|
||||
|
||||
Debug bool
|
||||
|
||||
TrackResponses bool
|
||||
@@ -113,6 +115,7 @@ func (o *HTTPOutput) startWorker() {
|
||||
OriginalHost: o.config.OriginalHost,
|
||||
Timeout: o.config.Timeout,
|
||||
ResponseBufferSize: o.config.BufferSize,
|
||||
CompatibilityMode: o.config.CompatibilityMode,
|
||||
})
|
||||
|
||||
deathCount := 0
|
||||
|
||||
Reference in New Issue
Block a user