1. 01 Jun, 2020 1 commit
  2. 30 May, 2020 3 commits
  3. 26 May, 2020 1 commit
  4. 25 May, 2020 1 commit
  5. 24 May, 2020 1 commit
  6. 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
  7. 21 May, 2020 1 commit
  8. 20 May, 2020 1 commit
  9. 19 May, 2020 2 commits
  10. 16 May, 2020 1 commit
  11. 04 May, 2020 2 commits
  12. 23 Apr, 2020 2 commits
  13. 13 Apr, 2020 1 commit
  14. 10 Apr, 2020 1 commit
  15. 09 Apr, 2020 2 commits
  16. 07 Apr, 2020 2 commits
  17. 03 Apr, 2020 1 commit
    • Michael Grunder's avatar
      Win32 tests and timeout fix (#776) · cc9d0329
      Michael Grunder authored
      Unit tests in Windows and a Windows timeout fix
      
      This commit gets our unit tests compiling and running on Windows as well as removes a duplicated `timeval` -> `DWORD` conversion logic in sockcompat.c 
      
      There are minor differences in behavior between Linux and Windows to note:
      
      1.  In Windows, opening a non-existent hangs forever in WSAPoll whereas
          it correctly returns with a "Connection refused" error on Linux.
          For that reason, I simply skip this test in Windows.
      
          It may be related to this known issue:
          https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/
      
      2.  Timeouts are handled slightly differently in Windows and Linux.  
          In Linux, we intentionally set REDIS_ERR_IO for connection
          timeouts whereas in Windows we set REDIS_ERR_TIMEOUT.  It may be
          prudent to fix this discrepancy although there are almost certainly
          users relying on the current behavior.
      cc9d0329
  18. 02 Apr, 2020 1 commit
  19. 14 Mar, 2020 1 commit
  20. 13 Mar, 2020 1 commit
  21. 28 Feb, 2020 2 commits
    • michael-grunder's avatar
      Bump version to 0.15.0 · 139f966c
      michael-grunder authored
      139f966c
    • Michael Grunder's avatar
      Housekeeping fixes (#764) · 38675d23
      Michael Grunder authored
      Housekeeping
      
      * Check for C++ (#758, #750) 
      * Include `alloc.h` in `make install` and `cmake`
      * Add a `.def` file for Windows (#760)
      * Include allocation wrappers referenced in adapter headers
      * Fix minor syntax errors and typos in README
      * Fix CI in Windows by properly escaping arguments (#761)
      38675d23
  22. 29 Jan, 2020 2 commits
  23. 28 Jan, 2020 1 commit
  24. 01 Jan, 2020 2 commits
  25. 18 Dec, 2019 1 commit
  26. 12 Dec, 2019 1 commit
    • michael-grunder's avatar
      Free the reply in redisGetReply when passed NULL · ac0b186a
      michael-grunder authored
      We currently perform a NULL check in redisGetReply and don't push the
      reply back to the caller, but we don't free any reply meaning that this
      will leak memory:
      
      redisGetReply(context, NULL);
      
      This change simply frees the reply if we were passed NULL.
      
      Addresses #740
      ac0b186a
  27. 06 Dec, 2019 1 commit
  28. 26 Nov, 2019 1 commit
  29. 25 Nov, 2019 1 commit
  30. 19 Nov, 2019 1 commit