Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/redis/hiredis

Minimalistic C client for Redis >= 1.2
https://github.com/redis/hiredis

[cmake] Fix cmake options position to support cmake toolchain (#1250)

Move CMake `OPTION` values below where we declare the `PROJECT` so they are scoped within it.

...

398e16e7cc20545a19f2af2293cc6f04310e6b7a authored 11 months ago by Uilian Ries <[email protected]>
Fix review comments

ab30060a6ed10aca62d8efe9f96c2b7ec05e70f6 authored 11 months ago by git-hulk <[email protected]>
Add support of RESP3 attribute type

Currently, Redis DEBUG PROTOCOL 'attrib' command will return an
attribute type, but hiredis does...

5b253d89c7cc9593723334e0a45077bd4008d3db authored 11 months ago by git-hulk <[email protected]>
Fix memory leak.

When redisLibuvAttach receives error from call to
uv_poll_init_socket there is a memory leaked p...

2706c3e16d57c9babd24bfd83ade2efcdb13a7b8 authored 11 months ago by Mark Agranat <[email protected]>
CMakeList: add option to not install NuGet packaging

The NuGet hiredis.target packaging description file is of no use on
systems that are not using N...

ff7a064490e0aacf718a5263b25b2ddaad0d245e authored 12 months ago by Yann E. MORIN <[email protected]>
Fix macOS and FreeBSD CI runners.

* Update macOS to brew install [email protected]
* Switch freeBSD runner to v1 and switch from running i...

94d931d96ab2770a78dad92603667867bbf452f5 authored 12 months ago by michael-grunder <[email protected]>
Make redisEnableKeepAlive a no-op on AF_UNIX connections. (#1215)

Fixes #1185

869f3d0ef1513dd0258ad7190c9914df16dcc4a4 authored over 1 year ago by Michael Grunder <[email protected]>
Integrating spellcheck into CI (#1218)

* Adding spellcheck testing

* words

* updating version of spellcheck action

039385bd8b9192a3994d75e75e377933f17d1f47 authored over 1 year ago by Chayim <[email protected]>
Add a panic helper for non-assert aborts.

We merged a fix for a "maybe uninitialized" warning in #1209, but after
merging there could actu...

e07ae7d3b6248be8be842eca3e1e97595a17aa1a authored over 1 year ago by michael-grunder <[email protected]>
Document poll(2) logic changes.

See #1206, #1213

bfe45d9f80ae5802fe3547ceccd03e1a66d41062 authored over 1 year ago by michael-grunder <[email protected]>
Retry poll(2) if we are intterupted.

This commit adds logic to retry our poll call when waiting for the
connection to complete, in th...

af95517612c209976352201f5f8f302bf9aef876 authored over 1 year ago by michael-grunder <[email protected]>
Fix a false positive warning of gcc 12+ -Werror=maybe-uninitialized

dedc6208b15738d7765eff35a61dd09d5830e732 authored over 1 year ago by V G <[email protected]>
Allow disabling the -Werror flag.

bff171c9fc83f8abed9a283a3da2dc91a5671419 authored over 1 year ago by Romain Geissler <[email protected]>
Bump development SONAME.

d7a84df9ea9954c6847587784d9d1ecb7d09e909 authored over 1 year ago by michael-grunder <[email protected]>
Version 1.2.0 (#1202)

Co-authored-by: Michael Grunder <[email protected]>

60e5075d4ac77424809f855ba3e398df7aacefe8 authored over 1 year ago by Chayim <[email protected]>
Remove support in deprecated TLS versions 1.0 and 1.1 (#1205)

adef139a75b346fdafed9a18f983a5350c5b8166 authored over 1 year ago by Valentino Geron <[email protected]>
Install major version symlink of shared objects.

This change addresses the issue discussed in #1202 and should make it
possible in the future to ...

d543baba671bc4609d27e2905de0d8d987f708fe authored over 1 year ago by Yossi Gottlieb <[email protected]>
Ensure functionality without _MSC_VER definition

052f99ab2da451e792a8cd264d61017487eae4a0 authored over 1 year ago by windyakin <[email protected]>
Add a test for the TCP_USER_TIMEOUT option. (#1192)

* Add a test for the TCP_USER_TIMEOUT option.
* Explicitly set errno to ENOTSUP on unsupported ...

ded32c7d1a449a94b0241270342cb75696c64224 authored over 1 year ago by Michael Grunder <[email protected]>
Add -Werror as a default. (#1193)

5cbd1f2960662c18b1d2b2dac7352f2b5b1ba776 authored over 1 year ago by Yossi Gottlieb <[email protected]>
CI: Update homebrew Redis version. (#1191)

Fixes cross-compilation QEMU CI tests

* CI: Update homebrew Redis version.
* CI: Try apt-get...

af144563835849350015113e936e44bf2d44906a authored over 1 year ago by Yossi Gottlieb <[email protected]>
Fix a typo in b6a052f.

6de326e8721738df0a002bfd5e0ca117a1135930 authored over 1 year ago by Yossi Gottlieb <[email protected]>
Helper for setting TCP_USER_TIMEOUT socket option (#1188)

* Implement redisSetTcpUserTimeout to set socket option TCP_USER_TIMEOUT

* Documentation for ...

b6a052fe0959dae69e16b9d74449faeb1b70dbe1 authored over 1 year ago by Viktor Söderqvist <[email protected]>
Add RedisModule adapter (#1182)

* Add RedisModule adapter
* add timer callback, add compatibility helper

3fa9b69443aa306b8219fc47aaffecd76e13a9ab authored over 1 year ago by Ozan Tezcan <[email protected]>
Fix wincrypt symbols conflict

d13c091e9f09fe4ad1858cd54ed3a842ac00b8e6 authored over 1 year ago by Jacky Hu <[email protected]>
Add a test ensuring we don't clobber connection error.

Adds a test that we don't attempt to set any socket timeout if the
connection itself failed. Th...

5d84c8cfdb3f3709499970bc450f5308f0c832c1 authored over 1 year ago by michael-grunder <[email protected]>
Don't attempt to set a timeout if we are in an error state.

3f95fcdae4d13dd234aea1d1b7f0af50efb79219 authored over 1 year ago by michael-grunder <[email protected]>
Fix typo in makefile.

aacb84b8d403c179803a7472c6804eddd39b0a23 authored over 1 year ago by michael-grunder <[email protected]>
Accept -nan per the RESP3 spec recommendation.

For reference:
https://github.com/redis/redis-specifications/blob/master/protocol/RESP3.md

563b062e37a869dea30b6d95c55c1bbc44bc15dd authored over 1 year ago by Michael Grunder <[email protected]>
Fix colliding option values

04c1b5b0292da1c6515baf6cb5b5b9bb882f38d7 authored almost 2 years ago by Viktor Söderqvist <[email protected]>
Attempt to find the correct path for openssl.

The installation path for openssl may vary depending on the way
used for its installation and th...

cd208812f922f3715b90e571bf9d4b048d3ac605 authored almost 2 years ago by Victor Polevoy <[email protected]>
Rework searching for openssl

4ca8e73f66105585c167086db52ce66a6ea14afe authored almost 2 years ago by michael-grunder <[email protected]>
Allow specifying the keepalive interval

Fixes #1155

011f7093c001b6584252418fc9f657c374bdca66 authored almost 2 years ago by michael-grunder <[email protected]>
Cmake static or shared (#1160)

* cmake: build either static or shared libs

* cmake: allow to build non-PIC static libs

* ...

e9243d4f706ab760f6c0f096d62e540ab2544c61 authored almost 2 years ago by autoantwort <[email protected]>
Write a version file for the CMake package (#1165)

* Write a version file for the CMake package

> If no VERSION is given, the PROJECT_VERSION va...

1cbd5bc762a466e196f78aae7ea6d5c8c5c51fe5 authored almost 2 years ago by Dominik Charousset <[email protected]>
fix typo

6f5bae8c6900e051da6e677756508707565ce56e authored almost 2 years ago by Till Krüss <[email protected]>
CMakeLists.txt: respect BUILD_SHARED_LIBS

To allow building hiredis on toolchain without dynamic library support,
respect standard cmake B...

acd09461d3c796751a0ea07ea69d81e7ce264320 authored about 2 years ago by Fabrice Fontaine <[email protected]>
Add sdevent adapter

97fcf0fd1ab74d6c943db0384efb81994ac67d58 authored about 2 years ago by Michael de Lang <[email protected]>
Bump dev version for the next release cycle.

ccff093bcd024844a0e11d05556d0e19d622e5d4 authored about 2 years ago by michael-grunder <[email protected]>
Prepare for v1.1.0 GA

c14775b4e48334e0262c9f168887578f4a368b5d authored about 2 years ago by michael-grunder <[email protected]>
Add support for nan in RESP3 double (#1133)

f0bdf8405b9f16013385bd81895e646aca134d4f authored about 2 years ago by filipe oliveira <[email protected]>
Add an example that calls redisCommandArgv (#1140)

See #1138

991b0b0b31d8b6c907db0fafdd4fdabb1b432d4e authored about 2 years ago by Michael Grunder <[email protected]>
CI updates (#1139)

* Build CMake generated makefiles
* Simplify and update checkout
* Update CI workflow 'C/C++ C...

a36686f84f6b8ecf1a85694fb0462495af7772a4 authored about 2 years ago by Bjorn Svensson <[email protected]>
fix flag reference

8ad4985e9dd0f8aa377fe0d1dee616d203322320 authored about 2 years ago by dachui <[email protected]>
Make freeing a NULL redisAsyncContext a no op.

This makes our behavior consistent with redisFree and freeReplyObject.

7583ebb1b271e7cb8e44f8211d02bd719d4a4bd1 authored about 2 years ago by michael-grunder <[email protected]>
Update version in dev branch.

2c53dea7f9853090c2bcbc6370e9faf958300703 authored about 2 years ago by michael-grunder <[email protected]>
Prepare for v1.1.0-rc1

- Update changelog.
- Bump version/soname defines.

f063370edfbe9927ababbeac05f2678fbe5398f6 authored about 2 years ago by michael-grunder <[email protected]>
CI fixes in preparation of release

- Upgrade to actions/checkout@v3 as node 12 is being phased out.
- Perform a manual dnf refresh ...

2b069573a5d87cfe46599bb0c5e2c4fa7269cd08 authored about 2 years ago by michael-grunder <[email protected]>
Add author information to release-drafter template.

e1e9eb40db0f469ec494815f15076e43e1742ced authored about 2 years ago by michael-grunder <[email protected]>
Update for mingw cross compile

- Used lowercase for Mstcpip.h as mingw will not find the file
otherwise

afc29ee1a1e7aad057c0037181baba26e63fcd4b authored about 2 years ago by bit0fun <[email protected]>
fixed cpp build error with adapters/libhv.h

ceb8a8815e5e436d944e49021c60f114344d3f3e authored about 2 years ago by cqm <[email protected]>
Fixup of PR734: Coverage of hiredis.c (#1124)

Improve coverage (#734)

* Remove duplicate tests

- double covered by:
"Can parse RESP3 ...

3b15a04b5939fc85f5e134ed09eb5c9e1584bef1 authored about 2 years ago by Bjorn Svensson <[email protected]>
CMake corrections for building on Windows (#1122)

* Replace use of newer CMake builtins than in v3.0.0

Visual Studio generator will replace -D ...

c245df9fb92fdb51b8255dc90a60eaf03b9846a0 authored over 2 years ago by Bjorn Svensson <[email protected]>
Fix PUSH handler tests for Redis >= 7.0.5

Redis updated how invalidation push messages are sent to the client
after a FLUSHDB or FLUSHALL ...

9c338a5981f12cb2a20625901b1a9fbe736e1c65 authored over 2 years ago by michael-grunder <[email protected]>
Install on windows fixes (#1117)

* Remove attempt to install .pdb file for windows static lib

From ff57c18b (#1054) the debug ...

6d5c3ee74d05d8b7d1bda49a1342fa00ccfc3367 authored over 2 years ago by Bjorn Svensson <[email protected]>
Add timeout support to libhv adapter. (#1109)

Add timeout support to libhv adapter.

See: #904

68b29e1ad509f45af8a6ca9486463d9a57a391f1 authored over 2 years ago by Michael Grunder <[email protected]>
Additional include directory given by pkg-config (#1118)

* Update include example in README

* Update pkg-config installed via CMake

Gives the inclu...

722e3409c7d133524750036655bf24d3193ff951 authored over 2 years ago by Bjorn Svensson <[email protected]>
Use __attribute__ when building with clang on windows

Since clang supports __attribute__ we can avoid disabling
it and use packed sdshdr structs. This...

bd9ccb8c47e6a021ebd67fca1ba832e4bb0d387f authored over 2 years ago by Björn Svensson <[email protected]>
set default SSL certificate directory

5392adc26515e4ac26ebd612eb88282bdb23a1a4 authored over 2 years ago by Vlad Turchenko <[email protected]>
Minor refactor

Protect against a NULL pointer dereference, and remove unused write
to a variable.

560e6648627cfd9bf347cffe5616d8043cbe940e authored over 2 years ago by michael-grunder <[email protected]>
Add libhv example to our standard Makefile

See #904

d756f68a59d694a91c1882c782161a023ea67766 authored over 2 years ago by michael-grunder <[email protected]>
Add adapters/libhv

a66916719b89f30c92afeb6e9ce5a4c3a4d4c552 authored over 2 years ago by hewei.it <[email protected]>
Fix pkgconfig for hiredis_ssl

Respect an overridden libdir when installing using CMake.
CMake now generates the hiredis_ssl.pc...

855b48a8191cd1fab865091cf4760017f85594a7 authored over 2 years ago by Björn Svensson <[email protected]>
Fix protocol error (#1106)

Fix ProtocolError

This commit attempts to fix hiredis such that a recoverable write error
wi...

79ae5ffc693b57688b4c76141fd2c94868ebdbff authored over 2 years ago by Michael Grunder <[email protected]>
Use a windows specific keepalive function. (#1104)

Use a windows specific keepalive function.

While it is possible to toggle `TCP_KEEPALIVE` in ...

61b5b299f0ac4f0efbe11a45716e06a9c35f37b7 authored over 2 years ago by Michael Grunder <[email protected]>
Introduce .close method for redisContextFuncs

Currently, hiredis supports TCP/SSL/Unix, all of the connection types
use a single FD(int), clos...

fce8abc1c19ab731f5c84797aa71b4d49921913f authored over 2 years ago by zhenwei pi <[email protected]>
Add REDIS_OPT_PREFER_UNSPEC (#1101)

Add REDIS_OPT_PREFER_UNSPEC

See: #1099, #1096

Co-authored-by: Viktor Söderqvist <viktor.so...

cfb6ca881132f7d44121935f55493e144511fbb6 authored over 2 years ago by Michael Grunder <[email protected]>
Update documentation to explain redisConnectWithOptions.

Additionally document the new `REDIS_OPT_PREFER_IPV4`,
`REDIS_OPT_PREFER_IPV6` as well as the re...

cc7c35ce6091571b292c1daeb93ce91d1b809ee6 authored over 2 years ago by michael-grunder <[email protected]>
fix heap-buffer-overflow (#957)

Prevent incrementing passed a `\0` in our format string.

Co-authored-by: Michael Grunder <mic...

bc8d837b72aa226ac1b0c4e112ad08ed8da6d0d3 authored over 2 years ago by zhangtaoXT5 <[email protected]>
uvadapter: reduce number of uv_poll_start calls

Internally uv_poll_start iterates over all
attached event handlers to update event mask. It's
qu...

ca4a0e850b9978104980ce980997f7a351376994 authored over 2 years ago by Anton Tiurin <[email protected]>
Fix cmake config path on Linux.

CMake config files were installed to `/usr/local/share/hiredis`, which is not recognizable by `fi...

35d398c903021f9d6827c06e1b9c799b6dad4d07 authored over 2 years ago by Tongliang Liao <[email protected]>
Add possibility to prefer IPv6, IPv4 or unspecified

10c78c6e179a32b3e1f9cd99bf18dcf0c37d295e authored over 2 years ago by Viktor Söderqvist <[email protected]>
Fix heap-buffer-overflow issue in redisvFormatCommad

A command with a faulty formatting string that lacks the
conversion specifier results in a ASAN ...

329eaf9bae314f8bc307c809340b262f67c2ce36 authored over 2 years ago by Björn Svensson <[email protected]>
fuzzer: No alloc in redisFormatCommand() when fail

1abe0c8285100e31a4688b3b09023eb3ad942394 authored over 2 years ago by Björn Svensson <[email protected]>
Polling adapter requires sockcompat.h

We need to install our socket compatibility header as the new polling
adapter needs it.

eaae7321c2c84c45f40ccb01233d299644f4e786 authored over 2 years ago by michael-grunder <[email protected]>
Regression test for off-by-one parsing error

See: #916

0a5fa3ddee9059e8ca98f6ac0f5683aba31f5173 authored over 2 years ago by bugwz <[email protected]>
Add do while(0) protection for macros

Wrapping multi-line macros in do...while(0) statement prevents
potential dangling else problem.

9e174e8f7d134fea69b0afd7e36443009b83badf authored over 2 years ago by Pei-Hsuan Hung <[email protected]>
Rework asSleep to be a generic millisleep function.

4ad99c69a21edb80f960877fccf9f9e13073ef30 authored over 2 years ago by michael-grunder <[email protected]>
Do store command timeout in the context for redisSetTimeout (#593)

75cb6c1ea6054db7cc71c05181c30d1c439867b7 authored over 2 years ago by Arseniy Simonov <[email protected]>
CMake: remove dict.c form hiredis_sources

Commit c6b8bd77c0fe00dbc455b39208f15761178160a3 to make all functions in dict.c static. If a CMa...

c57cad658d43973bc1f0609649ef90b104262d75 authored over 2 years ago by Lipraxde <[email protected]>
Add Github Actions CI workflow for hiredis: Arm, Arm64, 386, windows. (#943)

* Add docker support to test.sh
specifying a REDIS_DOCKER env var will run this as a server.
*...

8491a65a95527ced112310faa068eba395212a32 authored over 2 years ago by Kristján Valur Jónsson <[email protected]>
Merge pull request #964 from afcidk/fix-createDoubleObject

Fix potential fault at createDoubleObject

77e4f09ea8e01a500586c6b2aa37a76c98e172f0 authored over 2 years ago by Michael Grunder <[email protected]>
Merge pull request #901 from devnexen/illumos_test_fix

Illumos test fixes, error message difference fot bad hostname test.

9219f7e7c3e7fa4085658888398e42d6da70584c authored over 2 years ago by Michael Grunder <[email protected]>
Merge pull request #905 from sundb/master

Remove semicolon after do-while in _EL_CLEANUP

810cc6104c082cae0b42b52158fc52c3810228d8 authored over 2 years ago by Michael Grunder <[email protected]>
Merge pull request #1091 from redis/ssl-error-ub-fix

Fix some undefined behavior

df8b74d69e827d715ddf2281f0c0bcbd320b6816 authored over 2 years ago by Michael Grunder <[email protected]>
Fix some undefined behaviour

- redisSSLContextError must always be initialized at defintion,
otherwise when SSL connect suc...

0ed6cdec35aa8bb781bd1859c3b4e6b7ec61de10 authored over 2 years ago by jengab <[email protected]>
Merge pull request #1090 from Nordix/subscribe-oom-error

Copy OOM errors to redisAsyncContext when finding subscribe callback

507a6dcaa5471ea395964e3166d402799f3db2fe authored over 2 years ago by Michael Grunder <[email protected]>
Copy error to redisAsyncContext when finding subscribe cb

b044eaa6a751d9354f1c05305be902a17c7da97c authored over 2 years ago by Björn Svensson <[email protected]>
Merge pull request #1087 from redis/const-and-non-const-callback

Maintain backward compatibiliy withour onConnect callback.

e0200b797bb9ea1cdb744f371c3de09f72558343 authored over 2 years ago by Michael Grunder <[email protected]>
Maintain backward compatibiliy withour onConnect callback.

In f69fac7690fb22a7fc19dba61ef70e5f79ccb2e9, our async onConnect
callback was improved to take a...

6a3e96ad2149584e441b0e8a5827dc6c2624035b authored over 2 years ago by michael-grunder <[email protected]>
Merge pull request #1079 from SukkaW/drop-macos-10.15-runner

CI: bump macos runner version

e7afd998f9ce3e6dfaa5e6534f779cab6a1c5a7b authored over 2 years ago by Michael Grunder <[email protected]>
Merge pull request #931 from kristjanvalur/pr2

Stability: Support calling redisAsyncCommand and redisAsyncDisconnect from the onConnected callback

17c8fe0798d24f581656173ab71540ccf7eed7bb authored over 2 years ago by Michael Grunder <[email protected]>
Merge pull request #1083 from chayim/ck-drafter

Support for generating release notes

b808c0c206e4b1eabdbce2ee723df4258461d4da authored over 2 years ago by Michael Grunder <[email protected]>
Merge pull request #1085 from stanhu/ssl-improve-options-setting

Make it possible to set SSL verify mode

367a82bf02e8f3e198464edcb47fbba78b4d5824 authored over 2 years ago by Michael Grunder <[email protected]>
Make it possible to set SSL verify mode

If no SSL certificates are provided, many Redis clients default to
disabling SSL peer verificati...

71119a71d71d3c07bb9223de1ac5b4f97db3de0f authored over 2 years ago by Stan Hu <[email protected]>
Merge pull request #1084 from stanhu/sh-improve-ssl-docs

Improve example for SSL initialization in README.md

dd7979ac10a2bbaa06501512dcf22731af7b3fcc authored over 2 years ago by Michael Grunder <[email protected]>
Improve example for SSL initialization in README.md

The previous example left `ssl_error`
uninitialized. `redisCreateSSLContex` is not guaranteed to...

c71116178b63bc121a41749eea5f89d997522f19 authored over 2 years ago by Stan Hu <[email protected]>
Release drafter

5c9b6b571ed6686be375d412d80b5714745ad831 authored over 2 years ago by Chayim I. Kirshen <[email protected]>
CI: use recommended `vmactions/freebsd-vm@v0`

Co-authored-by: Bjorn Svensson <[email protected]>

a606ccf2a5f39d7af822b8e5d0bfbc63651750db authored over 2 years ago by Sukka <[email protected]>
Merge pull request #1080 from Nordix/readme-corrections

Fix README typos

0865c115ba963167214d33541870c6a6318897fb authored over 2 years ago by Michael Grunder <[email protected]>