http4s Received premature EOF error for 2 per of request

Viewed 261

we are doing performance testing for our application. we are getting org.http4s.InvalidBodyException: Received premature EOF error.

The problem is we are getting only for 1-2 per of requests. The percentage will increase if we will increase rps.

The architecture of Performance application:

enter image description here

The issue can happen in 3 parts:

  1. When we send requests from prod application to Kafka
  2. In the performance application client who is firing the requests
  3. Som issue in our application

If someone faces a similar issue, please let me know.

1 Answers

we are using some libraries to send requests from the forwarder. After investigation, we found that some requests are truncate in between. When our client read the request from Kafka it reads in bytes so these are incomplete requests and our server thought it will get a new stream but it will never get and the request did not complete. it throws timeout on the client and eof on the server side. I am doing more investigation. I will update if I found something else.

Related