goreplay icon indicating copy to clipboard operation
goreplay copied to clipboard

io: read/write on closed pipe

Open arrow2012 opened this issue 3 years ago • 3 comments

command:

gor --input-file "/opt/api.xxx.com-request-2021-07-23-13*|10%" --output-http="https://api-pts.xxx.com" -verbose 8

[DEBUG][elapsed 50.725µs]: [EMITTER] error during copy: "io: read/write on closed pipe"

arrow2012 avatar Jul 26 '21 08:07 arrow2012

Hi! Do you have more details on how to replicate it?

I wonder if it just sends this error at the end of replay.

buger avatar Jul 26 '21 08:07 buger

2021/07/26 16:35:18 [PPID 5268 and PID 5269] Version:1.3.0 [DEBUG][elapsed 644.981µs]: [EMITTER] input: 1 bac20050647a3584919470c9 1627018911844080301 0 from: Limiting File input: /test/api.xxx.com-request-2021-07-23-13* to: 100 (isPercent: false) [DEBUG][elapsed 104.623µs]: [EMITTER] error during copy: "io: read/write on closed pipe" [DEBUG][elapsed 1.2880866s]: [INPUT-FILE] FileInput: end of file '/test/api.xxx.com-request-2021-07-23-13*'

arrow2012 avatar Jul 26 '21 08:07 arrow2012

Hi,

Getting similar issue while running --split-output combined with 2x traffic. if --split-output is not used 2x is working fine. Below are the logs for the same.

2023/08/08 13:55:23 [PPID 7636 and PID 14502] Version:1.3.0 [DEBUG][elapsed 1.518107ms]: [EMITTER] input: 1 ebda0050ac1000af39edf547 1691068140072445031 0 from: Limiting File input: requests_0.gor to: 200 (isPercent: true) [DEBUG][elapsed 5.367931ms]: [EMITTER] input: 1 ebb40050ac1000af0982758b 1691068140082968104 0 from: Limiting File input: requests_0.gor to: 200 (isPercent: true) [DEBUG][elapsed 16.497878ms]: [EMITTER] input: 1 ebb60050ac1000af63612796 1691068140115735552 0 from: Limiting File input: requests_0.gor to: 200 (isPercent: true) [DEBUG][elapsed 44.53µs]: [EMITTER] error during copy: "io: read/write on closed pipe"

shivendra-tiket avatar Aug 08 '23 13:08 shivendra-tiket