Simulating network timeouts with toxiproxy

Goal: Simulate how a Node.js application reacts to timeouts. Solution: Use toxiproxy and its timeout “toxic” with the value of 0, i.e. the connection won’t close, and data will be delayed until the toxic is removed. The steps: 1. Start toxiproxy, exposing the port 6666 that we intend to use as localhost:6666: docker pull shopify/toxiproxy docker runContinue reading “Simulating network timeouts with toxiproxy”

OS X: Using scutils to discover whether/what a web proxy is in use

When looking for ways to discover whether a proxy is being used by OS X, you will be typically pointed to networksetup -getwebproxy However that does not always work – for example when using “Auto Proxy Discovery” and/or “Automatic Proxy Configuration” with a proxy.pac file. scutils –proxy seems to detect all these cases (though itContinue reading “OS X: Using scutils to discover whether/what a web proxy is in use”