1. 16 Mar, 2024 1 commit
  2. 19 Aug, 2023 1 commit
  3. 25 Jul, 2023 1 commit
  4. 29 May, 2023 1 commit
    • Viktor Söderqvist's avatar
      Helper for setting TCP_USER_TIMEOUT socket option (#1188) · b6a052fe
      Viktor Söderqvist authored
      * Implement redisSetTcpUserTimeout to set socket option TCP_USER_TIMEOUT
      
      * Documentation for redisSetTcpUserTimeout and some more undocumented functions
      
      Documentation for redisReconnect() and the setters of socket options:
      
      * redisKeepAlive()
      * redisEnableKeepAliveWithInterval()
      * redisSetTcpUserTimeout()
      b6a052fe
  5. 15 Nov, 2022 1 commit
  6. 10 Nov, 2022 1 commit
  7. 07 Nov, 2022 1 commit
  8. 19 Sep, 2022 1 commit
    • Bjorn Svensson's avatar
      Additional include directory given by pkg-config (#1118) · 722e3409
      Bjorn Svensson authored
      * Update include example in README
      
      * Update pkg-config installed via CMake
      
      Gives the include directory to enable the use of:
       #include <hiredis/hiredis.h>
      
      but keeps the existing include dir. for backwards compatibility.
      
      Example:
      > pkg-config hiredis --cflags
      -D_FILE_OFFSET_BITS=64 -I/usr/local/include/hiredis -I/usr/local/include
      
      * Update pkg-config installed via Make
      
      Gives the include directory to enable the use of:
        #include <hiredis/hiredis.h>
      but keeps the existing include path for backwards compatibility.
      
      Example:
      > pkg-config hiredis --cflags
      -D_FILE_OFFSET_BITS=64 -I/usr/local/include/hiredis -I/usr/local/include
      722e3409
  9. 02 Sep, 2022 2 commits
  10. 26 Aug, 2022 1 commit
    • michael-grunder's avatar
      Maintain backward compatibiliy withour onConnect callback. · 6a3e96ad
      michael-grunder authored
      In f69fac76, our async onConnect
      callback was improved to take a non-const redisAsyncContext allowing it
      to be reentrant.
      
      Unfortunately, this is a breaking change we can't make until hiredis
      v2.0.0.
      
      This commit creates a separate callback member and corresponding
      function that allows us to use the new functionality, while maintaining
      our existing API for legacy code.
      
      Fixes #1086
      6a3e96ad
  11. 10 Aug, 2022 1 commit
    • Stan Hu's avatar
      Improve example for SSL initialization in README.md · c7111617
      Stan Hu authored
      The previous example left `ssl_error`
      uninitialized. `redisCreateSSLContex` is not guaranteed to set this
      when no error occurs.
      
      Use the `REDIS_SSL_CTX_NONE` constant instead of 0 to be precise.
      c7111617
  12. 04 Aug, 2022 1 commit
  13. 26 Jun, 2022 3 commits
  14. 10 Oct, 2021 1 commit
    • michael-grunder's avatar
      Switch to GitHub actions · 0cac8dae
      michael-grunder authored
      Since TravisCI.org was deprecated we've been without any tests.  This
      commit adds back basic tests in Ubuntu, CentOS, and MacOS.
      
      More sophisticated tests/platforms to come in the future (e.g. 32bit
      tests).
      
      See: #992
      0cac8dae
  15. 07 Oct, 2021 1 commit
  16. 04 Oct, 2021 1 commit
  17. 23 May, 2021 1 commit
  18. 24 Apr, 2021 1 commit
  19. 17 Feb, 2021 1 commit
  20. 27 Oct, 2020 1 commit
  21. 03 Aug, 2020 1 commit
  22. 29 Jul, 2020 1 commit
  23. 20 Jul, 2020 2 commits
    • Michael Grunder's avatar
    • Michael Grunder's avatar
      Resp3 oob push support (#841) · 2e7d7cba
      Michael Grunder authored
      Proper support for RESP3 PUSH messages.
      
      By default, PUSH messages are now intercepted and the reply memory freed.  
      This means existing code should work unchanged when connecting to Redis
      >= 6.0.0 even if `CLIENT TRACKING` were then enabled.
      
      Additionally, we define two callbacks users can configure if they wish to handle
      these messages in a custom way:
      
      void redisPushFn(void *privdata, void *reply);
      void redisAsyncPushFn(redisAsyncContext *ac, void *reply);
      
      See #825
      2e7d7cba
  24. 26 May, 2020 1 commit
  25. 24 May, 2020 1 commit
  26. 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
  27. 16 May, 2020 1 commit
  28. 28 Feb, 2020 1 commit
    • 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
  29. 10 Oct, 2019 1 commit
  30. 07 Oct, 2019 1 commit
  31. 22 Jul, 2019 1 commit
  32. 26 Oct, 2018 1 commit
    • Jean Flach's avatar
      Update README.md · 9ff1cc78
      Jean Flach authored
      Add note about using context->data to pass user data to connect and disconnect callbacks
      9ff1cc78
  33. 20 Apr, 2016 2 commits
  34. 26 Mar, 2016 1 commit
  35. 16 Apr, 2015 1 commit