- 22 Dec, 2021 2 commits
-
-
sundb authored
-
Bjorn Svensson authored
RESP3 allows sending commands in parallell with pubsub handling and these commands might get responded with a REDIS_REPLY_ARRAY. This conflicts with the pubsub response handling for RESP2 and results in a faulty state when using RESP3. Add functionality to keep track of PUSH/RESP3 support on the connection and only expect the message type REDIS_REPLY_PUSH as subscribe messages when once seen.
-
- 16 Dec, 2021 2 commits
-
-
Bjorn Svensson authored
* Handle PING during pubsub in RESP2 * Rename invalid callback list Some commands are valid to send during a subscribe in RESP2, and most in RESP3. Renaming the callback list from `invalid` to `replies` to detail this fact. * Fix review comment
-
Michael Grunder authored
* BSD linkage fix proposal * Touch up the Makefile to fix BSD builds Fixes #984 * Add a build in FreeBSD to GitHub Actions Lots of people use hiredis in FreeBSD so this should reduce some pain moving forward. Co-authored-by:
David Carlier <devnexen@gmail.com>
-
- 01 Dec, 2021 1 commit
-
-
Bjorn Svensson authored
* Include `unsubscribe` as a subscribe reply in RESP3 By providing the (p)unsubscribe message via the subscribe callback, instead of via the push callback, we get the same behavior in RESP3 as in RESP2. * Add asynchronous test for pubsub using RESP3 The testcase will subscribe to a channel, and via a second client a message is published to the channel. After receiving the message the testcase will unsubscribe and disconnect. This RESP3 testcase reuses the subscribe callback from the RESP2 testcase to make sure we have a common behavior.
-
- 25 Nov, 2021 1 commit
-
-
Bjorn Svensson authored
By default Valgrind will return the exit code from the tested process. Since our test can return 0 (ALL TESTS PASS) even when a leak was found we need to tell Valgrind to return an error code. This will fail the CI job when issues are found.
-
- 18 Nov, 2021 3 commits
-
-
Michael Grunder authored
CMake started hanging when trying to detect the C compiler ABI in cygin, so for now just build with make directly.
-
Björn Svensson authored
-
Björn Svensson authored
A warning in `redisLibevTimeout(..)` is triggered when building the libev adapter with Clang using -Wextra/-Wunused-parameter. Works fine with gcc..
-
- 17 Nov, 2021 1 commit
-
-
michael-grunder authored
-
- 27 Oct, 2021 1 commit
-
-
Björn Svensson authored
The testcase will subscribe to a channel, and via a second client a message is published to the channel. After receiving the message the testcase will unsubscribe and disconnect.
-
- 26 Oct, 2021 1 commit
-
-
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.
-
- 21 Oct, 2021 1 commit
-
-
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.
-
- 20 Oct, 2021 1 commit
-
-
Björn Svensson authored
-
- 14 Oct, 2021 1 commit
-
-
michael-grunder authored
-
- 12 Oct, 2021 3 commits
-
-
michael-grunder authored
I'm sure this can be done with a container matrix but figuring that out is left for another day.
-
michael-grunder authored
-
michael-grunder authored
-
- 10 Oct, 2021 4 commits
-
-
michael-grunder authored
See: #992 TODO: MinGW/cygwin tests
-
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
-
michael-grunder authored
-
michael-grunder authored
Since `hi_calloc` always passes through one of our wrapper functions, we can perform this overflow in the wrapper, and get protection everywhere. Previous commit: 76a7b100 Related vuln ID: CVE-2021-32765 [Full Details](https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2)
-
- 09 Oct, 2021 1 commit
-
-
Tongliang Liao authored
Or it'll be treated as part of the var name.
-
- 07 Oct, 2021 3 commits
-
-
michael-grunder authored
-
michael-grunder authored
-
michael-grunder authored
-
- 04 Oct, 2021 3 commits
-
-
michael-grunder authored
Merge the v1.0.1 release branch and bump the dev version to 1.0.2-dev
-
michael-grunder authored
-
Yossi Gottlieb authored
This fix prevents hiredis from trying to allocate more than `SIZE_MAX` bytes, which would result in a buffer overrun. [Full Details](https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2)
-
- 03 Oct, 2021 1 commit
-
-
Yunier Perez authored
-
- 19 Aug, 2021 1 commit
-
-
rouzier authored
Co-authored-by:
James Rouzier <jrouzier@inverse.ca>
-
- 11 Jul, 2021 1 commit
-
-
Meir Shpilraien (Spielrein) authored
When set hiredis will not automatically free replies in an async context, and the replies must be freed instead by the user. Co-authored-by:
Michael Grunder <michael.grunder@gmail.com>
-
- 17 Jun, 2021 1 commit
-
-
michael-grunder authored
-
- 23 May, 2021 1 commit
-
-
michael-grunder authored
Closes #929
-
- 02 May, 2021 3 commits
-
-
Michael Grunder authored
Bugfix: Ignore timeout callback from a successful connect (fixes #945)
-
Michael Grunder authored
improve SSL leak fix redis/hiredis#896
-
Michael Grunder authored
fix(docs): corrects typos in project README
-
- 24 Apr, 2021 1 commit
-
-
plan-do-break-fix authored
-
- 11 Apr, 2021 1 commit
-
-
Hans Zandbelt authored
Free SSL object when redisSSLConnect fails but avoid doing that for callers of redisInitiateSSL who are supposed to manager their own SSL object. Signed-off-by:
Hans Zandbelt <hans.zandbelt@zmartzone.eu>
-
- 08 Apr, 2021 1 commit
-
-
Kristján Valur Jónsson authored
-