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