Gatling check for java.io.IOException: remotely closed

When running a test in gatling, I get the following error:

java.io.IOException: Remotely closed 

which is expected (server disconnects). How to mark the success of the test or check this exception?

+6
source share
1 answer

This exception means that the server closed the connection when the client (Gatling) tried to write to it.

This may indicate that you need to configure the keep-alive timeout so that it does not correspond to the typical user timeout, but such an event will always occur.

But then the web browser retries the request in the event of such a failure.

Gatling can do this too, but now it's disabled (by default it will be enabled in 2.1.6). Until then, you can change the maxRetry value in the maxRetry file.

+2
source

Source: https://habr.com/ru/post/986664/


All Articles