mendhak/docker-http-https-echo

Force a request to sleep for a period of time

daninthewoods opened this issue · 3 comments

This is an awesome testing utility, thanks so much. We use it a lot for testing our k8s proxy logic (nginx/haproxy etc.) If it could expand to allow a custom header to cause a sleep period for a given request, it would provide the ability to also test features of proxies like request queuing and server bottlenecking.

I've got a tag you can test. mendhak/http-https-echo:sleep-header

Then try a curl command like this

curl -H "x-set-response-delay-ms: 9000" http://localhost:8080/

Perfect, that works great. Thanks for being so responsive.

OK nice I've tested a bit too, added to the test script.

I've merged this now it's in tag 18.

docker pull mendhak/http-https-echo:18