1. 14 Aug, 2020 1 commit
    • michael-grunder's avatar
      Patch Hiredis v1.0.0 to use Redis' SDS library. · 211580d1
      michael-grunder authored
      Hiredis needs to run in Windows so has a fair bit of logic to handle
      that environment.  This isn't a requirement when packaging it in Redis,
      and to avoid having to maintain two copies of virtually the same library
      in memory, just use the one from Redis.
      
      There are a few places where Hiredis is checking for NULL return values
      from allocations, because we try to gracefully handle those situations.
      This isn't needed in Redis as it just hard aborts under such
      circumstances.
      211580d1
  2. 03 Aug, 2020 1 commit
  3. 29 Jul, 2020 2 commits
    • michael-grunder's avatar
      Update notes preparing for v1.0.0-rc1 · a8534675
      michael-grunder authored
      a8534675
    • Michael Grunder's avatar
      Move SSL management to a distinct private pointer. (#855) · d8ff7238
      Michael Grunder authored
      We need to allow our users to use redisContext->privdata as context
      for any RESP3 PUSH messages, which means we can't use it for managing
      SSL connections.
      
      Bulletpoints:
      
      * Create a secondary redisContext member for internal use only called
        privctx and rename the redisContextFuncs->free_privdata accordingly.
      
      * Adds a `free_privdata` function pointer so the user can tie allocated
        memory to the lifetime of a redisContext (like they can already do
        with redisAsyncContext)
      
      * Enables SSL tests in .travis.yml
      d8ff7238
  4. 26 Jul, 2020 2 commits
  5. 21 Jul, 2020 1 commit
    • michael-grunder's avatar
      Fix a static analysis false positive · 3bb98531
      michael-grunder authored
      Static analyzer's can't tell that hi_calloc is calloc-like, and report a
      potential null pointer dereference.  This isn't possible but it's
      probably smarter to make the test anyway in the event code changes.
      3bb98531
  6. 20 Jul, 2020 4 commits
  7. 10 Jul, 2020 1 commit
  8. 09 Jul, 2020 2 commits
  9. 22 Jun, 2020 1 commit
  10. 19 Jun, 2020 1 commit
  11. 07 Jun, 2020 1 commit
  12. 01 Jun, 2020 1 commit
  13. 30 May, 2020 3 commits
  14. 26 May, 2020 1 commit
  15. 25 May, 2020 1 commit
  16. 24 May, 2020 1 commit
  17. 22 May, 2020 1 commit
    • Michael Grunder's avatar
      Allow users to replace allocator and handle OOM everywhere. (#800) · 8e0264cf
      Michael Grunder authored
      * Adds an indirection to every allocation/deallocation to allow users to 
        plug in ones of their choosing (use custom functions, jemalloc, etc).
      
      * Gracefully handle OOM everywhere in hiredis.  This should make it possible
        for users of the library to have more flexibility in how they handle such situations.
      
      * Changes `redisReaderTask->elements` from an `int` to a `long long` to prevent
        a possible overflow when transferring the task elements into a `redisReply`.
      
      * Adds a configurable `max elements` member to `redisReader` that defaults to
        2^32 - 1.  This can be set to "unlimited" by setting the value to zero.
      8e0264cf
  18. 21 May, 2020 1 commit
  19. 20 May, 2020 1 commit
  20. 19 May, 2020 2 commits
  21. 16 May, 2020 1 commit
  22. 04 May, 2020 2 commits
  23. 23 Apr, 2020 2 commits
  24. 13 Apr, 2020 1 commit
  25. 10 Apr, 2020 1 commit
  26. 09 Apr, 2020 2 commits
  27. 07 Apr, 2020 2 commits