summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-13Allow disabling the -Werror flag.Romain Geissler
2023-07-13Bump development SONAME.michael-grunder
2023-07-12Version 1.2.0 (#1202)Chayim
Co-authored-by: Michael Grunder <michael.grunder@gmail.com>
2023-07-12Remove support in deprecated TLS versions 1.0 and 1.1 (#1205)Valentino Geron
2023-07-10Install major version symlink of shared objects.Yossi Gottlieb
This change addresses the issue discussed in #1202 and should make it possible in the future to update minor versions without requiring re-linking binaries.
2023-06-08Ensure functionality without _MSC_VER definitionwindyakin
2023-06-01Add a test for the TCP_USER_TIMEOUT option. (#1192)Michael Grunder
* Add a test for the TCP_USER_TIMEOUT option. * Explicitly set errno to ENOTSUP on unsupported OS's
2023-06-01Add -Werror as a default. (#1193)Yossi Gottlieb
2023-05-30CI: Update homebrew Redis version. (#1191)Yossi Gottlieb
Fixes cross-compilation QEMU CI tests * CI: Update homebrew Redis version. * CI: Try apt-get update as a workaround.
2023-05-30Fix a typo in b6a052f.Yossi Gottlieb
2023-05-29Helper for setting TCP_USER_TIMEOUT socket option (#1188)Viktor Söderqvist
* 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()
2023-04-24Add RedisModule adapter (#1182)Ozan Tezcan
* Add RedisModule adapter * add timer callback, add compatibility helper
2023-04-18Fix wincrypt symbols conflictJacky Hu
2023-04-15Add a test ensuring we don't clobber connection error.michael-grunder
Adds a test that we don't attempt to set any socket timeout if the connection itself failed. This issue only seemed to occur on macOS but it's nice to have a test for it.
2023-04-14Don't attempt to set a timeout if we are in an error state.michael-grunder
2023-04-14Fix typo in makefile.michael-grunder
2023-04-14Accept -nan per the RESP3 spec recommendation.Michael Grunder
For reference: https://github.com/redis/redis-specifications/blob/master/protocol/RESP3.md
2023-03-13Fix colliding option valuesViktor Söderqvist
2023-03-09Rework searching for opensslmichael-grunder
2023-03-09Attempt to find the correct path for openssl.Victor Polevoy
The installation path for openssl may vary depending on the way used for its installation and the macOS version. This commit attempts to find the correct path for openssl to use.
2023-03-07Allow specifying the keepalive intervalmichael-grunder
Fixes #1155
2023-03-07Cmake static or shared (#1160)autoantwort
* cmake: build either static or shared libs * cmake: allow to build non-PIC static libs * fix typo * cmake: add ALIAS targets * cmake: link to OpenSSL imported targets CMake imported targets are more robust * turn ENABLE_EXAMPLES to a CMake option * fix typo * install pdb files if shared * fix hiredis_ssl-config file * Fix more targets * CMake knows when to enable CMAKE_POSITION_INDEPENDENT_CODE * Restore setting of /Z7 * [ci] fix building of shared and static libs * Apply suggestions from code review Co-authored-by: Bjorn Svensson <bjorn.a.svensson@est.tech> * Make it possible to change name of exported target --------- Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Co-authored-by: Bjorn Svensson <bjorn.a.svensson@est.tech>
2023-02-24Write a version file for the CMake package (#1165)Dominik Charousset
* 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.
2023-01-06fix typoTill Krüss
2022-12-27CMakeLists.txt: respect BUILD_SHARED_LIBSFabrice Fontaine
To allow building hiredis on toolchain without dynamic library support, respect standard cmake BUILD_SHARED_LIBS: https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-12-21Add sdevent adapterMichael de Lang
2022-11-15Bump dev version for the next release cycle.michael-grunder
2022-11-14Prepare for v1.1.0 GAmichael-grunder
2022-11-14Add support for nan in RESP3 double (#1133)filipe oliveira
2022-11-12Add an example that calls redisCommandArgv (#1140)Michael Grunder
See #1138
2022-11-10CI updates (#1139)Bjorn Svensson
* Build CMake generated makefiles * Simplify and update checkout * Update CI workflow 'C/C++ CI' * Some corrections of spelling and naming. * Remove running on branch dev since not officially available.
2022-11-09fix flag referencedachui
2022-11-09Make freeing a NULL redisAsyncContext a no op.michael-grunder
This makes our behavior consistent with redisFree and freeReplyObject.
2022-11-09Update version in dev branch.michael-grunder
2022-11-06Prepare for v1.1.0-rc1michael-grunder
- Update changelog. - Bump version/soname defines.
2022-11-02CI fixes in preparation of releasemichael-grunder
- Upgrade to actions/checkout@v3 as node 12 is being phased out. - Perform a manual dnf refresh on RockyLinux during setup. - Switch to official cygwin/cygwin-install-action
2022-11-02Add author information to release-drafter template.michael-grunder
2022-10-26Update for mingw cross compilebit0fun
- Used lowercase for Mstcpip.h as mingw will not find the file otherwise
2022-10-24fixed cpp build error with adapters/libhv.hcqm
2022-10-14Fixup of PR734: Coverage of hiredis.c (#1124)Bjorn Svensson
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: Ariel <ashtul@gmail.com>
2022-09-29CMake corrections for building on Windows (#1122)Bjorn Svensson
* 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.
2022-09-27Fix PUSH handler tests for Redis >= 7.0.5michael-grunder
Redis updated how invalidation push messages are sent to the client after a FLUSHDB or FLUSHALL command. See: redis/redis#8935
2022-09-27Install on windows fixes (#1117)Bjorn Svensson
* 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.
2022-09-21Add timeout support to libhv adapter. (#1109)Michael Grunder
Add timeout support to libhv adapter. See: #904
2022-09-19Additional include directory given by pkg-config (#1118)Bjorn Svensson
* 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
2022-09-14Use __attribute__ when building with clang on windowsBjörn Svensson
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
2022-09-08set default SSL certificate directoryVlad Turchenko
2022-09-08Minor refactormichael-grunder
Protect against a NULL pointer dereference, and remove unused write to a variable.
2022-09-07Add libhv example to our standard Makefilemichael-grunder
See #904
2022-09-07Add adapters/libhvhewei.it