1. 09 Feb, 2022 4 commits
    • rand: introduce git_rand PRNG · 3c53796c
      Introduce `git_rand`, a PRNG based on xoroshiro256**, a fast,
      all-purpose pseudo-random number generator: https://prng.di.unimi.it
      
      The PRNG will be seeded by the system's entropy store when possible,
      falling back to current time and system data (pid, uptime, etc).
      Inspiration for this was taken from libressl, but since our PRNG is
      not used for cryptographic purposes (and indeed currently only generates
      a unique temp file name that is written in a protected directory),
      this should be more than sufficient.
      
      Our implementation of xoroshiro256** was taken almost strictly from
      the original author's sources, but was tested against PractRand to
      ensure that there were no foolish mistranslations:
      
      ```
      RNG_test using PractRand version 0.94
      RNG = RNG_stdin64, seed = unknown
      test set = core, folding = standard (64 bit)
      
      rng=RNG_stdin64, seed=unknown
      length= 256 megabytes (2^28 bytes), time= 2.9 seconds
        no anomalies in 210 test result(s)
      
      rng=RNG_stdin64, seed=unknown
      length= 512 megabytes (2^29 bytes), time= 6.2 seconds
        no anomalies in 226 test result(s)
      
      rng=RNG_stdin64, seed=unknown
      length= 1 gigabyte (2^30 bytes), time= 12.7 seconds
        no anomalies in 243 test result(s)
      
      rng=RNG_stdin64, seed=unknown
      length= 2 gigabytes (2^31 bytes), time= 25.4 seconds
        no anomalies in 261 test result(s)
      
      rng=RNG_stdin64, seed=unknown
      length= 4 gigabytes (2^32 bytes), time= 50.6 seconds
        no anomalies in 277 test result(s)
      
      rng=RNG_stdin64, seed=unknown
      length= 8 gigabytes (2^33 bytes), time= 104 seconds
        no anomalies in 294 test result(s)
      ```
      Edward Thomson committed
    • Merge pull request #6205 from ccstolley/ccs_fix_http_push_timeout · d299a7aa
      push: Prepare pack before sending pack header.
      Edward Thomson committed
    • Merge pull request #6206 from libgit2/ethomson/odb_write_failures · 1e7c8b1f
      odb: check for write failures
      Edward Thomson committed
  2. 08 Feb, 2022 2 commits
  3. 07 Feb, 2022 2 commits
    • push: Prepare pack before sending pack header. · 19ec5923
      For large pushes, preparing the pack can take a while. Currently we
      send the pack header first, followed by preparing the pack and then
      finally sending the pack. Unfortunately github.com will terminate
      a git-receive-pack command over http if it is idle for more than 10
      seconds. This is easily exceeded for a large push, and so the push is
      rejected with a Broken Pipe error.
      
      This patch moves the pack preparation ahead of sending the pack header,
      so that the timeout is avoided.
      
      prepare_pack() can be called multiple times but will only do the work
      once, so the original PREPARE_PACK call inside git_packbuilder_foreach()
      remains.
      Colin Stolley committed
  4. 06 Feb, 2022 1 commit
  5. 03 Feb, 2022 5 commits
  6. 31 Jan, 2022 7 commits
  7. 30 Jan, 2022 6 commits
  8. 28 Jan, 2022 9 commits
  9. 27 Jan, 2022 1 commit
  10. 23 Jan, 2022 1 commit
  11. 20 Jan, 2022 2 commits