[tor-commits] [tor/master] Split read_all and write_all into separate functions