https://github.com/joyent/node/issues/5018