summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-08-29Merge pull request #905 from sundb/masterMichael Grunder
Remove semicolon after do-while in _EL_CLEANUP
2022-08-29Merge pull request #1091 from redis/ssl-error-ub-fixMichael Grunder
Fix some undefined behavior
2022-08-29Fix some undefined behaviourjengab
- 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.
2022-08-29Merge pull request #1090 from Nordix/subscribe-oom-errorMichael Grunder
Copy OOM errors to redisAsyncContext when finding subscribe callback
2022-08-29Copy error to redisAsyncContext when finding subscribe cbBjörn Svensson
2022-08-26Merge pull request #1087 from redis/const-and-non-const-callbackMichael Grunder
Maintain backward compatibiliy withour onConnect callback.
2022-08-26Maintain backward compatibiliy withour onConnect callback.michael-grunder
In f69fac7690fb22a7fc19dba61ef70e5f79ccb2e9, 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
2022-08-26Merge pull request #1079 from SukkaW/drop-macos-10.15-runnerMichael Grunder
CI: bump macos runner version
2022-08-19Merge pull request #931 from kristjanvalur/pr2Michael Grunder
Stability: Support calling redisAsyncCommand and redisAsyncDisconnect from the onConnected callback
2022-08-17Merge pull request #1083 from chayim/ck-drafterMichael Grunder
Support for generating release notes
2022-08-15Merge pull request #1085 from stanhu/ssl-improve-options-settingMichael Grunder
Make it possible to set SSL verify mode
2022-08-15Make it possible to set SSL verify modeStan Hu
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
2022-08-10Merge pull request #1084 from stanhu/sh-improve-ssl-docsMichael Grunder
Improve example for SSL initialization in README.md
2022-08-10Improve example for SSL initialization in README.mdStan Hu
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.
2022-08-10Release drafterChayim I. Kirshen
2022-08-05CI: use recommended `vmactions/freebsd-vm@v0`Sukka
Co-authored-by: Bjorn Svensson <bjorn.a.svensson@est.tech>
2022-08-04Merge pull request #1080 from Nordix/readme-correctionsMichael Grunder
Fix README typos
2022-08-04Fix README typosBjörn Svensson
2022-07-31Merge pull request #1050 from smmir-cent/fix-cmake-versionMichael Grunder
fix cmake version
2022-07-25CI: bump macos runner versionSukkaW
2022-07-08Drop `const` on redisAsyncContext in redisConnectCallbackKristján Valur Jónsson
Since the callback is now re-entrant, it can call apis such as redisAsyncDisconnect()
2022-07-08Support calling redisAsyncDisconnect from the onConnected callback, by ↵Kristján Valur Jónsson
deferring context deletion
2022-07-08Add async regression test for issue #931Kristján Valur Jónsson
2022-07-07Merge pull request #932 from kristjanvalur/pr3Michael Grunder
Polling adapter and example
2022-07-05Add regression test for issue #945Kristján Valur Jónsson
2022-07-05Initial async testsKristján Valur Jónsson
2022-07-05Polling adapter and exampleKristján Valur Jónsson
2022-06-26Merge pull request #1057 from orgads/static-nameMichael Grunder
Use the same name for static and shared libraries
2022-06-26Merge pull request #1054 from kristjanvalur/pr08Michael Grunder
Embed debug information in windows static .lib file
2022-06-26Merge pull request #1074 from michael-grunder/kristjanvalur-pr4Michael Grunder
Improved async documentation
2022-06-26Whitespacemichael-grunder
2022-06-26Fix typosKristján Valur Jónsson
2022-06-26Add some documentation on connect/disconnect callbacks and command callbacksKristján Valur Jónsson
2022-06-26Merge pull request #1073 from michael-grunder/kristjanvalur-pr1Michael Grunder
Fix async connect on Windows
2022-06-26Whitespace, stylemichael-grunder
2022-06-26Use correct type for getsockopt()Kristján Valur Jónsson
2022-06-26Support failed async connects on windows.Kristján Valur Jónsson
2022-06-26Merge pull request #1072 from michael-grunder/fix-redis7-unit-testsMichael Grunder
Fix tests so they work for Redis 7.0
2022-06-26Fix tests so they work for Redis 7.0michael-grunder
* Redis >= 7.0.0 disables the `DEBUG` command by default, which we need for our unit tests. * Downgrade to Redis 6.2.x in macOS temporarily There is a macOS specific TLS error on large payloads when running against 7.x.x so temporarily run our tests against 6.2, while we investigate the root cause.
2022-05-04Merge pull request #1058 from orgads/win64Michael Grunder
Fix warnings on Win64
2022-04-24Fix warnings on Win64Orgad Shaneh
read.c:399:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 399 | obj = (void*)(long)cur->type; | ^
2022-04-23Merge pull request #1062 from yossigo/fix-push-notification-orderMichael Grunder
Handle push notifications before or after reply.
2022-04-23Merge pull request #1061 from yossigo/update-redis-aptMichael Grunder
Use official repository for redis package.
2022-04-23Merge pull request #1063 from redis/fix-windows-testsMichael Grunder
Whitelist hiredis repo path in cygwin
2022-04-23Whitelist hiredis repo path in cygwinmichael-grunder
2022-04-22Handle push notifications before or after reply.Yossi Gottlieb
2022-04-22Use official repository for redis package.Yossi Gottlieb
2022-04-05Merge pull request #1047 from Nordix/unsubscribe-handlingMichael Grunder
Unsubscribe handling in async
2022-04-05Merge pull request #1045 from Nordix/sds-updatesMichael Grunder
Update hiredis sds with improvements found in redis
2022-03-29Use the same name for static and shared librariesOrgad Shaneh
On all system except MSVC, the targets are different. Unix: libhiredis.so, libhiredis.a MinGW: libhiredis.dll+libhiredis.dll.a, libhiredis.a MSVC: hiredis.dll+hiredis.lib, hiredis_static.lib