1. 28 Aug, 2019 3 commits
  2. 27 Aug, 2019 5 commits
  3. 26 Aug, 2019 3 commits
  4. 23 Aug, 2019 1 commit
  5. 22 Aug, 2019 3 commits
  6. 21 Aug, 2019 6 commits
  7. 20 Aug, 2019 4 commits
  8. 19 Aug, 2019 2 commits
  9. 17 Aug, 2019 1 commit
    • Emmanuel T Odeke's avatar
      storage/internal/benchserver: make body reads idempotent · 0549e538
      Emmanuel T Odeke authored
      When we converted "files" to be
          map[string]io.Reader
      we used an io.LimitedReader that then unfortunately
      meant that multiple runs wouldn't stream back the
      content. That's because when io.LimitedReader hits
      io.EOF, we need to reset its N for it to read
      more from rand.Reader.
      
      This would then mean that the second request would
      stream back 0 bytes, which is not what we want.
      
      An update to make this reset would be a bit complex,
      so instead make "files"
          map[string]int64
      mapping the file name to its size. When a request
      is then made for the file, we'll create a fresh
      io.LimitedReader, which produces the correct behavior.
      
      Change-Id: I609da9458fc28efece4967a73520b5ac6214f6cb
      Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/44191Reviewed-by: default avatarkokoro <noreply+kokoro@google.com>
      Reviewed-by: default avatarAlex Hong <hongalex@google.com>
      0549e538
  10. 16 Aug, 2019 3 commits
  11. 15 Aug, 2019 4 commits
  12. 14 Aug, 2019 4 commits
  13. 13 Aug, 2019 1 commit