Chaos Monkey - Part 1 - Simulating a dodgy network on a local IIS

June 03, 2015

I thought I’d share this little DOS script that I’ve been using to simulate an unstable network connection on a local IIS:


:startLoop
	iisreset
	ping 1.1.1.1 -n 1 -w 10000 > nul
	GOTO startLoop
:endLoop

Not rocket science, but it does what it says on the tin. I saved it into a batch file and run that along with my app.



Profile picture

A blog about one man's journey through code… and some pictures of the Peak District
Twitter

© Paul Michaels 2024