siege and TCP TIME_WAIT

Note to self form installing siege via brew on OSX.

brew install siege

Thanks clever people in brew and siege! 🙂

Mac OS X has only 16K ports available that won't be released until socket
TIME_WAIT is passed. The default timeout for TIME_WAIT is 15 seconds.
Consider reducing in case of available port bottleneck.

You can check whether this is a problem with netstat:

    # sysctl net.inet.tcp.msl
    net.inet.tcp.msl: 15000

    # sudo sysctl -w net.inet.tcp.msl=1000
    net.inet.tcp.msl: 15000 -> 1000

Run siege.config to create the ~/.siegerc config file.

rst2pdf and rst2html5 on OS X 10.9.2 with XCode 5.1

This was almost the new nightmare on elm street scenario. But we got over it. Below are the complete steps to get rst2pdf and rst2html5 running on your sparkling new OS X 10.9.2 Mavericks.


  • XCode 5.1
  • Homebrew 0.9.5


# install jpeg lib via homebrew
brew install libjpeg

# install pip via easy_install
sudo easy_install --upgrade pip

# install dependencies manually using the unused argument hack
sudo pip install --upgrade pdfrw

sudo pip install --upgrade Pygments

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install --upgrade reportlab

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install --allow-unverified PIL PIL

# install the bad boy
sudo pip install -U rst2pdf
sudo pip install -U rst2html5