1. 13 Jul, 2023 1 commit
  2. 10 Jul, 2023 1 commit
  3. 01 Jun, 2023 1 commit
  4. 14 Apr, 2023 1 commit
  5. 09 Mar, 2023 2 commits
  6. 14 Oct, 2022 1 commit
    • Bjorn Svensson's avatar
      Fixup of PR734: Coverage of hiredis.c (#1124) · 3b15a04b
      Bjorn Svensson authored
      
      
      Improve coverage (#734)
      
      * Remove duplicate tests
      
      - double covered by:
        "Can parse RESP3 doubles"
      - bool covered via:
        "Can parse RESP3 bool"
      
      * Make (connect) timeout in test config general
      
      * Set error string in Unix connect with invalid timeout
      
      Restructure testcase since redisConnectWithTimeout() and
      redisConnectUnixWithTimeout() now behaves similar.
      
      * Use quiet flag in lcov/genhtml instead of piping to /dev/null
      
      * Fixup of redisCommandArgv test case
      
      * Update test case to match what it covers
      
      Use new test case info text since the previous one seemed copy&pasted.
      The sought coverage was the handling of the parent-chaining
      for a double object, which the test case now focuses on.
      Co-authored-by: default avatarAriel <ashtul@gmail.com>
      3b15a04b
  7. 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
  8. 07 Sep, 2022 1 commit
  9. 01 Sep, 2022 1 commit
  10. 29 Aug, 2022 1 commit
  11. 05 Jul, 2022 1 commit
  12. 18 Jan, 2022 1 commit
  13. 24 Dec, 2021 1 commit
  14. 23 Dec, 2021 1 commit
    • zhenwei pi's avatar
      Makefile: move SSL options into a block and refine rules · f74b0818
      zhenwei pi authored
      
      
      Move SSL options into two blocks to make it easy to read:
        1, first part: SSL variables part
        1, second part: SSL building rules part
      and change global rules to make it easy to maintain. For the further
      step, it gets extensible to add another type.
      
      New version of the library building rule:
      	static: $(STLIBNAME) $(SSL_STLIB)
      	dynamic: $(DYLIBNAME) $(SSL_DYLIB)
      
      Compare with the orignal version:
      	dynamic: $(DYLIBNAME)
      	static: $(STLIBNAME)
      	ifeq ($(USE_SSL),1)
      	dynamic: $(SSL_DYLIBNAME)
      	static: $(SSL_STLIBNAME)
      	endif
      
      If we want to add a new type(Ex, RDMA), for the new version, we can
      do like this:
      	########### RDMA variables start ###############
      	.....
      	########### RDMA variables end   ###############
      
      	static: $(STLIBNAME) $(SSL_STLIB) $(RDMA_STLIB)
      	dynamic: $(DYLIBNAME) $(SSL_DYLIB) $(RDMA_DYLIB)
      
      	########### RDMA building rules start ###############
      	.....
      	########### RDMA building rules end   ###############
      Signed-off-by: default avatarzhenwei pi <pizhenwei@bytedance.com>
      f74b0818
  15. 16 Dec, 2021 1 commit
  16. 26 Oct, 2021 1 commit
    • Björn Svensson's avatar
      Add build options for enabling async tests · 648763c3
      Björn Svensson authored
      Asynchronous testcases that requires the event library `libevent`
      can be built and enabled by using the added build flags:
      - ENABLE_ASYNC_TESTS when using CMake
      - TEST_ASYNC when using Make
      
      The async tests are disabled by default to avoid adding new requirements,
      but the testcases are built and run in CI.
      648763c3
  17. 21 Oct, 2021 1 commit
    • Bjorn Svensson's avatar
      Correcting the build target `coverage` for enabled SSL (#1009) · c98c6994
      Bjorn Svensson authored
      * Exclude includes from /usr in coverage reporting
      
      * Correct build target `coverage` for enabled ssl
      
      `USE_SSL=1 make coverage` will now build the test binary with the
      forwarded define HIREDIS_TEST_SSL. This avoids inconsistency between
      built test binary and the testrunner `test.sh`.
      This enables test coverage measurements for SSL too.
      c98c6994
  18. 03 Oct, 2021 1 commit
  19. 20 Jul, 2020 1 commit
    • 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
  20. 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
  21. 19 May, 2020 1 commit
  22. 23 Apr, 2020 1 commit
  23. 13 Apr, 2020 1 commit
  24. 29 Jan, 2020 1 commit
    • akichan's avatar
      install alloc.h · 3ae47397
      akichan authored
      alloc.h added in # 754
      But not added to INSTALL_INCLUDE_PATH
      3ae47397
  25. 28 Jan, 2020 1 commit
  26. 16 Sep, 2019 1 commit
    • Yossi Gottlieb's avatar
      Add SSL mode tests. · d952ed87
      Yossi Gottlieb authored
      This repeats all existing tests in SSL mode, but does not yet provide
      SSL-specific tests.
      d952ed87
  27. 01 Sep, 2019 1 commit
  28. 29 Aug, 2019 2 commits
  29. 01 Apr, 2019 1 commit
  30. 21 Feb, 2019 1 commit
  31. 20 Feb, 2019 8 commits