1. 16 Apr, 2023 1 commit
  2. 15 Apr, 2023 1 commit
  3. 14 Apr, 2023 2 commits
  4. 13 Mar, 2023 1 commit
  5. 09 Mar, 2023 2 commits
  6. 08 Mar, 2023 2 commits
  7. 24 Feb, 2023 1 commit
    • Dominik Charousset's avatar
      Write a version file for the CMake package (#1165) · 1cbd5bc7
      Dominik Charousset authored
      * Write a version file for the CMake package
      
      > If no VERSION is given, the PROJECT_VERSION variable is used.
      
      Since we set the project version to `${VERSION}`, we can safely skip
      passing it to `write_basic_package_version_file` as well.
      1cbd5bc7
  8. 06 Jan, 2023 1 commit
  9. 27 Dec, 2022 1 commit
  10. 21 Dec, 2022 1 commit
  11. 16 Nov, 2022 1 commit
  12. 15 Nov, 2022 1 commit
  13. 14 Nov, 2022 1 commit
  14. 13 Nov, 2022 1 commit
  15. 10 Nov, 2022 4 commits
  16. 07 Nov, 2022 1 commit
  17. 02 Nov, 2022 2 commits
  18. 27 Oct, 2022 1 commit
  19. 24 Oct, 2022 1 commit
  20. 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
  21. 29 Sep, 2022 1 commit
    • Bjorn Svensson's avatar
      CMake corrections for building on Windows (#1122) · c245df9f
      Bjorn Svensson authored
      * Replace use of newer CMake builtins than in v3.0.0
      
      Visual Studio generator will replace -D with /D.
      
      * Only use /Z7 flag on a Visual Studio compilator
      
      Flag is not available on a GNU compilator running on windows,
      like in a mingw64 setup.
      c245df9f
  22. 27 Sep, 2022 2 commits
    • michael-grunder's avatar
      Fix PUSH handler tests for Redis >= 7.0.5 · 9c338a59
      michael-grunder authored
      Redis updated how invalidation push messages are sent to the client
      after a FLUSHDB or FLUSHALL command.
      
      See: redis/redis#8935
      9c338a59
    • Bjorn Svensson's avatar
      Install on windows fixes (#1117) · 6d5c3ee7
      Bjorn Svensson authored
      * Remove attempt to install .pdb file for windows static lib
      
      From ff57c18b (#1054) the debug information was embedded in the
      windows static lib rather than creating a .pdb file.
      Removing the installation step of this file in CMake when building
      with buildtype Debug or RelWithDebInfo.
      
      * Embed debug information in windows hiredis_ssl_static lib
      
      See ff57c18b (#1054) for same change in library hiredis_static.
      6d5c3ee7
  23. 21 Sep, 2022 1 commit
  24. 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
  25. 14 Sep, 2022 1 commit
    • Björn Svensson's avatar
      Use __attribute__ when building with clang on windows · bd9ccb8c
      Björn Svensson authored
      Since clang supports __attribute__ we can avoid disabling
      it and use packed sdshdr structs. This also make sure we dont
      affect subsequent header files that require __attribute__.
      
      Note:
      Clang attempts to be compatible with MSVC and defines _MSC_VER
      bd9ccb8c
  26. 08 Sep, 2022 2 commits
  27. 07 Sep, 2022 2 commits
  28. 06 Sep, 2022 1 commit
    • Björn Svensson's avatar
      Fix pkgconfig for hiredis_ssl · 855b48a8
      Björn Svensson authored
      Respect an overridden libdir when installing using CMake.
      CMake now generates the hiredis_ssl.pc file with the correct
      result in `libdir` and `Libs`.
      
      See #767 and CMakes `CMAKE_INSTALL_LIBDIR`
      855b48a8
  29. 05 Sep, 2022 1 commit
    • Michael Grunder's avatar
      Fix protocol error (#1106) · 79ae5ffc
      Michael Grunder authored
      
      
      Fix ProtocolError
      
      This commit attempts to fix hiredis such that a recoverable write error
      will be retried rather than throwing a hard error.
      
      Since our read/write functions are now behind function pointers, we
      specify semantically that a return value of < 0 is a hard error, 0 a
      recoverable error, and > 0 a success.
      
      Our default `redisNetRead` function was already doing something similar
      so this also improves code consistency.
      
      Resolves #961
      Co-authored-by: default avatarMaksim Tuleika <maksim.tuleika@appcast.io>
      79ae5ffc
  30. 03 Sep, 2022 1 commit
    • Michael Grunder's avatar
      Use a windows specific keepalive function. (#1104) · 61b5b299
      Michael Grunder authored
      Use a windows specific keepalive function.
      
      While it is possible to toggle `TCP_KEEPALIVE` in windows via
      setsockopt, you have to use `WSAIoctl` to set the interval.
      
      Since `WSAIoctl` can actually do all of this in one call (toggle the
      option, and set the corresponding interval), just use that in Windows
      and avoid the call to `setsockopt` alltogether.
      
      Fixes: #1100
      61b5b299