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