Gatling check for java.io.IOException: Remotely closed

拜拜、爱过 提交于 2019-12-08 19:49:29

问题


While doing a test in gatling I get the following error

java.io.IOException: Remotely closed

which is expected (server cuts connection). How do I mark the test success or check for that exception?


回答1:


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

This might be in indication that you have to tune your keep-alive timeout to NOT match typical user think time, but such event will always happen.

But then, web browsers retry sending the request in case of such a failure.

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



来源:https://stackoverflow.com/questions/30078781/gatling-check-for-java-io-ioexception-remotely-closed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!