[tor-commits] [tor/master] refactor logic to decide how much to package from inbuf