See this commit: https://github.com/torproject/tor/pull/1686/commits/16561514782498009335205b08b2c0c123c6ab9b