
timeout is written to satisfy tcp and http based timeout testing needs. It works as a stub server in replacement of your application's external tcp/http dependency.
Briefly speaking, you can run a tcp/http stub server in seconds.
Respond with status http:yourhost/yourresource?status=x where x is an integer number between 200 and 599:
https://gotimeout.herokuapp.com/yourpreciousresource?status=201https://gotimeout.herokuapp.com/yourpreciousresource?status=302https://gotimeout.herokuapp.com/yourpreciousresource?status=401Sleep before responding http:yourhost/yourresource?sleep=x x is in milliseconds:
https://gotimeout.herokuapp.com/yourpreciousresource?sleep=1000 --> wait for 1 second before respondinghttps://gotimeout.herokuapp.com/yourpreciousresource?sleep=5000 --> wait for 5 second before responding:5501:5502:5503:5504:5505:5506:5507go get github.com/yaman/timeout
$GOPATH/bin/timeout -proto=http -port=8080
$GOPATH/bin/timeout -proto=tcp
Only Http timeout is available through heroku for now. Just change your external url to ;
https://gotimeout.herokuapp.com/yourpreciousresource?sleep=1
You just need to run following command provided that Docker is up and running on your local machine;
sudo docker run -p 5000:5000 -e PROTO=http -e PORT=5000 yaman/timeout
sudo docker run -p 5500-5600:5500-5600 -e PROTO=tcp yaman/timeout
Content type
Image
Digest
sha256:28488b5da…
Size
255.5 MB
Last updated
about 9 years ago
docker pull yaman/timeout