Descriptionnet: added sendfile support for io.SectionReader
3 points to note. SectionReader now exports ReaderAt in same
way as the LimitedReader. Offset and Remaining bytes use
methods instead as it seemed cleaner that way. General support
for Darwin was added which makes it identical to dragonfly and
freebsd (should possibly be refactored into one). The test for
linux uses similar approach to the net/http/fs_test.go which I
know is not ideal.
Fixes issue 6374.
Patch Set 1 #Patch Set 2 : diff -r 1a0714819799 https://code.google.com/p/go #
Total comments: 1
MessagesTotal messages: 3
|