- 08 Sep, 2022 1 commit
-
-
michael-grunder authored
See #712
-
- 07 Sep, 2022 2 commits
-
-
michael-grunder authored
See #904
-
hewei.it authored
-
- 06 Sep, 2022 1 commit
-
-
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`
-
- 05 Sep, 2022 1 commit
-
-
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:
Maksim Tuleika <maksim.tuleika@appcast.io>
-
- 03 Sep, 2022 1 commit
-
-
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
-
- 02 Sep, 2022 3 commits
-
-
zhenwei pi authored
Currently, hiredis supports TCP/SSL/Unix, all of the connection types use a single FD(int), close() is enough to close a connection. For the further step, introduce .close method for redisContextFuncs, this allows to close a complex connection context, for example RDMA. Signed-off-by:
zhenwei pi <pizhenwei@bytedance.com>
-
Michael Grunder authored
Add REDIS_OPT_PREFER_UNSPEC See: #1099, #1096 Co-authored-by:
Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by:
Viktor Söderqvist <viktor.soderqvist@est.tech> Co-authored-by:
Viktor Söderqvist <viktor.soderqvist@est.tech>
-
michael-grunder authored
Additionally document the new `REDIS_OPT_PREFER_IPV4`, `REDIS_OPT_PREFER_IPV6` as well as the rest of our existing options. See #1096
-
- 01 Sep, 2022 7 commits
-
-
zhangtaoXT5 authored
Prevent incrementing passed a `\0` in our format string. Co-authored-by:
Michael Grunder <michael.grunder@gmail.com> Co-authored-by:
Kristján Valur Jónsson <sweskman@gmail.com>
-
Anton Tiurin authored
Internally uv_poll_start iterates over all attached event handlers to update event mask. It's quite expensive operation if there many event handlers attached to a loop. As redisLibuvEvents.events is a copy of what libuv should see, we can rely on it to avoid event mask updates. Signed-off-by:
Anton Tiurin <noxiouz@yandex.ru>
-
Tongliang Liao authored
CMake config files were installed to `/usr/local/share/hiredis`, which is not recognizable by `find_package()`. I'm not sure why it was set that way. Given the commit introducing it is for Windows, I keep that behavior consistent there, but fix the rest.
-
Viktor Söderqvist authored
-
Björn Svensson authored
-
Björn Svensson authored
A command with a faulty formatting string that lacks the conversion specifier results in a ASAN heap-buffer-overflow. This was due to that strchr() matches on null-termination, which triggers a continuation of the string parsing.
-
michael-grunder authored
We need to install our socket compatibility header as the new polling adapter needs it.
-
- 31 Aug, 2022 1 commit
-
-
bugwz authored
See: #916
-
- 30 Aug, 2022 1 commit
-
-
Pei-Hsuan Hung authored
Wrapping multi-line macros in do...while(0) statement prevents potential dangling else problem.
-
- 29 Aug, 2022 11 commits
-
-
michael-grunder authored
-
Arseniy Simonov authored
-
Kristján Valur Jónsson authored
* Add docker support to test.sh specifying a REDIS_DOCKER env var will run this as a server. * Add initial test workflow * Add workflow test to test 32 bit build * Add ARM x compilation tests * Add tests for windows platform * Test with valgrind
-
Michael Grunder authored
Fix potential fault at createDoubleObject
-
Michael Grunder authored
Illumos test fixes, error message difference fot bad hostname test.
-
Michael Grunder authored
Remove semicolon after do-while in _EL_CLEANUP
-
Michael Grunder authored
Fix some undefined behavior
-
jengab authored
- redisSSLContextError must always be initialized at defintion, otherwise when SSL connect succeeds it may not be assigned to a valid error. Thus the memory trash remains in the variable, which may sign a misleading error.
-
Michael Grunder authored
Copy OOM errors to redisAsyncContext when finding subscribe callback
-
Björn Svensson authored
-
- 26 Aug, 2022 3 commits
-
-
Michael Grunder authored
Maintain backward compatibiliy withour onConnect callback.
-
michael-grunder authored
In f69fac76, our async onConnect callback was improved to take a non-const redisAsyncContext allowing it to be reentrant. Unfortunately, this is a breaking change we can't make until hiredis v2.0.0. This commit creates a separate callback member and corresponding function that allows us to use the new functionality, while maintaining our existing API for legacy code. Fixes #1086
-
Michael Grunder authored
CI: bump macos runner version
-
- 19 Aug, 2022 1 commit
-
-
Michael Grunder authored
Stability: Support calling redisAsyncCommand and redisAsyncDisconnect from the onConnected callback
-
- 17 Aug, 2022 1 commit
-
-
Michael Grunder authored
Support for generating release notes
-
- 16 Aug, 2022 1 commit
-
-
Michael Grunder authored
Make it possible to set SSL verify mode
-
- 15 Aug, 2022 1 commit
-
-
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
-
- 10 Aug, 2022 3 commits
-
-
Michael Grunder authored
Improve example for SSL initialization in README.md
-
Stan Hu authored
The previous example left `ssl_error` uninitialized. `redisCreateSSLContex` is not guaranteed to set this when no error occurs. Use the `REDIS_SSL_CTX_NONE` constant instead of 0 to be precise.
-
Chayim I. Kirshen authored
-
- 05 Aug, 2022 1 commit
-
-
Sukka authored
Co-authored-by:
Bjorn Svensson <bjorn.a.svensson@est.tech>
-