[tor-commits] [tor/master] turn MAX_REND_FAILURES into a function