[tor-commits] [tor/master] Refactor read_to_chunk() such that it supports both pipes and sockets.