Connection timeout and read timeout are set for httpUser requests, but max rt far exceeds the set timeout for proxy requests. #3046
Replies: 2 comments 1 reply
-
Hmm.. good question. HttpUser.client is basically a simple wrapper around I think this is just the normal behavior of requests (check their docs and/or google the issue in that context), but why they chose to do it that way I have no idea. Maybe try switching to FastHttpUser and see if that better matches your desired timeout behavior. |
Beta Was this translation helpful? Give feedback.
-
By the way, does FastHttpUser support setting up proxies, geventhttpclient is not supported, refer to my link above. I see that locust's documentation has proxy_host and proxy_port parameters, and my proxy is used in httpUser as follows
I've tried a couple of ways and nothing works,If locust's FastHttpUser supports setting proxy, then how do I set it up. |
Beta Was this translation helpful? Give feedback.
-
When I set the connection timeout to 0.001 and the read timeout to 60, the max(ms) of the locust web page is 9. My understanding is that I set the connection timeout to 0.001s, which is 1ms, so if I don't connect within 1ms, then the interface reports a timeout, so the max(ms) of the locust web should be 1. But The max(ms) value of locust web should be 1, but it actually shows 9. As shown in the figure below
After I set the proxy proxies, the connection timeout is still 0.001, the read timeout is still 60, and the max(ms) of the locust web page is 5007. My understanding is that I set the connection timeout to 0.001s, which is 1ms, so if I don't connect within 1ms, the interface reports a timeout, so the max(ms) of the locust web page should be 1, but it actually shows 9. The max(ms) value of locust web should be 1, but it actually shows 5007, why does max become so big after adding the proxy, and its value is bigger than the timeout 0.001 that I set?

The timeout I set is in effect because the status_code of the interface is all 0
Beta Was this translation helpful? Give feedback.
All reactions