1. 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
  2. 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
  3. 08 Sep, 2022 2 commits
  4. 07 Sep, 2022 2 commits
  5. 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
  6. 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
  7. 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
  8. 02 Sep, 2022 3 commits
  9. 01 Sep, 2022 7 commits
  10. 31 Aug, 2022 1 commit
  11. 30 Aug, 2022 1 commit
  12. 29 Aug, 2022 11 commits
  13. 26 Aug, 2022 3 commits
  14. 19 Aug, 2022 1 commit
  15. 17 Aug, 2022 1 commit
  16. 16 Aug, 2022 1 commit
  17. 15 Aug, 2022 1 commit
    • Stan Hu's avatar
      Make it possible to set SSL verify mode · 71119a71
      Stan Hu authored
      If no SSL certificates are provided, many Redis clients default to
      disabling SSL peer verification. Previously it was a bit cumbersome to
      configure this because the client would either have to reimplement
      `redisCreateSSLContext()` or reach into the internals to set the
      OpenSSL verify mode.
      
      We can improve the SSL API by introducing a
      `redisCreateSSLContextWithOptions()` call that takes into structured
      parameters for SSL initialization. This structure contains a verify
      mode that is used to set the OpenSSL verify mode.
      
      Relates to https://github.com/redis/hiredis/issues/646
      71119a71
  18. 10 Aug, 2022 1 commit