Created
January 21, 2010 22:14
-
-
Save spullara/283255 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you are testing this web application on a local network, the network | |
speeds will be so fast you won’t ever see the progress indicator. If you | |
are using Mac OS X, you can slow all incoming web traffic by typing a | |
couple of ipfw commands at the terminal. For example, these com- | |
mands will slow all web traffic to 4 kilobytes per second: | |
sudo ipfw pipe 1 config bw 4KByte/s | |
sudo ipfw add 100 pipe 1 tcp from any to me 80 | |
If you are using the Safari desktop browser to view the pages, you’ll need | |
to use your Mac’s hostname or external IP address in the URL (for ex- | |
ample, mymac.local rather than localhost). When you’re done testing, | |
delete the rule with sudo ipfw delete 100 (you can delete all custom | |
rules with ipfw flush). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment