[tor-commits] [tor/release-0.2.9] turn MAX_REND_FAILURES into a function