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