buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://goreplay.org
Other
18.42k stars 4 forks source link

can't record POST json body data when body is too big #1087

Open Koyamatsu opened 2 years ago

Koyamatsu commented 2 years ago

I can not record POST request included too big json as a body(like 4MB).

dummyusers.txt is my body data.

There are steps I tried to record. (1) start file server ./gor file-server :8085

(2) run ./gor --output-stdout --input-raw :8085 --output-file=dummyusers4mb.gor

I refered some issue!

I can not record by adding some options such as --input-raw-override-snaplen,--output-http-compatibility-mode and --copy-buffer-size 500485760...

How can I solve this?

Oyabi commented 1 year ago

Any new on this issue ? I have the same problem.

wangfeng22 commented 1 year ago

Maybe you can try -input-raw-expire 30s option. The 4MB http body takes a relatively long time to transmit.