goreplay icon indicating copy to clipboard operation
goreplay copied to clipboard

Request Error : EOF

Open siri2020p opened this issue 7 years ago • 2 comments

I am using goreplay version : 0.16.1

I have goreplay running on our test machine (TM1). When we do a search a request gets send to TM1 and goreplay will send the request over to service (TS1). Step 1: I start goreplay on TM1 and I send a request manually to TM1. I see that TS1 gets the request as expected . Step 2: I start goreplay again and I try to send request organically(by doing a search) and I see the following error $ sudo ./goreplay --input-raw :8081 -output-http “TS1|1" -verbose -output-http-stats -output-http-timeout 10s [DEBUG][PID 72871][1556735987531056298][1556735987531.056396ms] Listening for traffic on: :8081 Version: 0.16.1 [DEBUG][PID 72871][1556736007646719557][20115.663259ms] [HTTPClient] Connecting:TS1 [DEBUG][PID 72871][1556736007873140871][226.421314ms] Request error: EOF [DEBUG][PID 72871][1556736067766381652][59893.240781ms] [HTTPClient] connection closed, reconnecting [DEBUG][PID 72871][1556736067766425753][0.044101ms] [HTTPClient] Connecting: TS1 [DEBUG][PID 72871][1556736067766495276][0.069523ms] [HTTP] Disconnected: TS1 [DEBUG][PID 72871][1556736068060133760][293.638484ms] Request error: EOF

Not sure what I am missing here.

siri2020p avatar May 01 '19 19:05 siri2020p

Got the same error. Not sure what I am doing wrong.

[DEBUG][PID 3078][1562327754459534188][0.006607ms] [HTTPClient] Wrapping socket in TLS qa4-new.example.com [DEBUG][PID 3078][1562327754482356285][22.658097ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754482730753][0.374468ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754483108664][0.377911ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754483417932][0.309268ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754483750947][0.333015ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754484080757][0.329810ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754484407058][0.326301ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754484719561][0.312503ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754485041300][0.321739ms] [HTTPClient] Successfully wrapped in TLS [DEBUG][PID 3078][1562327754485359938][0.318638ms] [HTTPClient] Successfully wrapped in TLS 2019/07/05 17:25:54 Error when sending EOF 2019-07-05 17:25:54.494948688 +0530 IST m=+46.418309711 [DEBUG][PID 3078][1562327754495032146][9.672208ms] Request error: EOF [DEBUG][PID 3078][1562327754495093500][0.061354ms] [HTTPClient] connection closed, reconnecting [DEBUG][PID 3078][1562327754495141862][0.048362ms] [HTTPClient] Connecting: https://qa4-new.example.com [DEBUG][PID 3078][1562327754495213450][0.071588ms] [HTTP] Disconnected: https://qa4-new.example.com 2019/07/05 17:25:54 Error when sending EOF 2019-07-05 17:25:54.495458974 +0530 IST m=+46.418819988 [DEBUG][PID 3078][1562327754495495996][0.282546ms] Request error: EOF

ashwinikumar29 avatar Jul 05 '19 12:07 ashwinikumar29

I am using goreplay version : 1.0.0 I met the same problem with you. accoding to my test, I treat it as a bug. Maybe you can deal it with do something as following:

  1. you need to save traffic as a file, then you check if its content contains HTTP/1.0. if it contains, you have to rewrite it as HTTP/1.1.
  2. your traffic may have unnecessary header.
  3. your traffic may have request whose method is POST and the url param of these request is not linked to url by "?" in the second line of every request, which is the second line from the bottom of single request. you can link url param to url by "?" and rewrite the second line from the bottom of single request as "\n". As a result, there is no ERROR about "EOF".

dev-wt avatar Jul 31 '19 05:07 dev-wt