I have tested your code using the host value from the original image. I get the error:
ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer')))
So the response status code is 0 with an error and the test runner get stopped. I see everything ok in my side, but I run the latest code from:
https://github.com/locustio/locust
It seems that what you have experienced it's an issue already solved at:
https://github.com/locustio/locust/issues/1677
You could try to see if the issue remains after the new test with the latest Locust version 1.4.3 that it's already available on:
https://pypi.org/project/locust/
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…