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
This reverts commit d8145d79ce715054980938c751067ebaa541573c.
8999750f12ba61f7ec550c38c5eada235f6bc06b authored over 9 years ago by Jan-Erik Rediger <[email protected]>Not all code using hiredis can compile using '-std=c99', and/or not all users are able to easily...
d132d676e918355bb33e5ac8b346f678a7dce0e9 authored over 9 years ago by Alex Balashov <[email protected]>Fix memory leak in async spontaneous reply handling
b9f907fb4c1ce5280f26f61d611b9fcedcf6add4 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
When an asynchronous hiredis connection subscribes to a Pub/Sub channel
and gets an error, and i...
Turns out: gnu9x defines `unix` to 1, making it unusable as a variable
name.
31436c33ac0cc68f288ddac6addb1f3618985c52 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
4b30b5812d32b4e06da6c913d954408e5387e276 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
af598dbce5bc896af9947cb0f0678de442ab92f2 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
b676007253ae48e2863abe969427fe3eb17a5b82 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Originally implemented by @abedra as part of #306.
In case a write or read times out, we force ...
d9e0b0f6abfbb8918f73607bdfcc707d0df3fd41 authored over 9 years ago by Jan-Erik Rediger <[email protected]>b872919463fbc04c3a8fde113cb9ae89dfcb3859 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Add PKGCONFNAME to install dependencies.
27d4dcb6f03b43b0f6d62a3982e80c5744105422 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Attempting to use the install target before the make target works fine,
except for the missing p...
Added support for compiling the parser code with Microsoft Visual C compiler.
421e0f33f45a1a175149b270032c75f533cea0e3 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>30814af63cfaecd5c371e82e0bb484802e5dff67 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Fix hiredis.pc generation.
5c12fa4ce493e516802916308ef5d181db58dfc4 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>97364ed59ab6b56297c5e23a4147ccfa5c981208 authored almost 10 years ago by Dan Skorupski <[email protected]>
Update apt repos first
796305a307217ab3128adf75447695743a09aff7 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>0f6ad5c460f208badb7afb238efb2d29eae2247c authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
For hiredis-py and others support on windows.
ec229678c22e673e8d48070593f7b028a514882a authored almost 10 years ago by tzickel <private@com>
Due to the various processors going over the command, we need more
escaping.
1) Make parses it,...
37c06facda57af9bad68f50c18edfa22d6ef76f7 authored almost 10 years ago by Dominique Leuenberger <[email protected]>Closes #309
(such as when -DNDEBUG disables all assert() macros)
Inspired by keith-bennett-gbg...
27076a3e6d60f3c98d116df5d6b7e1bfdd5d970b authored almost 10 years ago by Matt Stancliff <[email protected]>Closes #302
6b122d43f968f2104032379f183cdbfd453e1472 authored almost 10 years ago by Matt Stancliff <[email protected]>
Adds travis testing for 32bit builds as well as compile warnings
on 64 bit and 32 bit builds.
Major fix:
- `make install` now works properly
Minor fix:
- `make test` now works after `ma...
This is the only way to force a 32-bit build of the test binary
2b2b512dca67d8db9bbad76a14bf7c7860a94166 authored almost 10 years ago by Matt Stancliff <[email protected]>
We need to re-gen pkgconf when the version changes, and the version
is kept in hiredis.h, so mak...
Adds DESTDIR support
Fixes INSTALL_PKGCONF_PATH
Properly copies {read,shs}.h now during make ins...
bbd6044e35740a13bcd9951a7d912ec12a9c82b9 authored almost 10 years ago by Matt Stancliff <[email protected]>
dd680fcc14ca2b950fd454577fcf532d58ffa7b5 authored almost 10 years ago by Matt Stancliff <[email protected]>
This replaces the old intlen() implementation with a slightly
faster way of counting digits.
Im...
195aca34274bd633f6ecfca2e9a4e76ae669ae0e authored almost 10 years ago by Matt Stancliff <[email protected]>7b51834c165133cf6816b1991920a55bdc64ea78 authored almost 10 years ago by Matt Stancliff <[email protected]>
3c023ee1572fb4dcbbc526b9c64cf3bc315464db authored almost 10 years ago by Matt Stancliff <[email protected]>
Suggested at
https://github.com/redis/hiredis/issues/294#issuecomment-69153074
This change also...
802456def1949cc1b1eef21cd5c8290161c4f434 authored almost 10 years ago by Matt Stancliff <[email protected]>Fixes #294
c642079a8055a84be770a6eb44e66bcbb42820bd authored almost 10 years ago by Matt Stancliff <[email protected]>glibc 2.20 requires _DEFAULT_SOURCE and doesn't like _BSD_SOURCE alone
Also see:
- https://git...
dad05164231338092cdcbebf266f7101f53bc164 authored about 10 years ago by Matt Stancliff <[email protected]>
9abfdf940569fe6a7b34793e017c0de7f76ec48e authored about 10 years ago by Matt Stancliff <[email protected]>
The pkgconf source is localized to the Makefile, so we're not dropping
an unnecessary "hiredis.p...
f28872ca704ea162d970251ad20d1a0752506cfc authored about 10 years ago by Matt Stancliff <[email protected]>
The strerror_r API has two flavors depending on system options.
The bad flavor uses a static bu...
cc202324064ac36a008b85e3b1946e59d83cb8b4 authored about 10 years ago by Matt Stancliff <[email protected]>Makes hiredis reading functions easier to include in external projects
[fixed all merge conflic...
ba3e74c40888fe773290fda2561fdae5d5bb53c7 authored about 10 years ago by tzickel <private@com>These should really just be macros to shut up our type system.
0cacb485feeb5318bd09b013833ca6e9026a5cc0 authored about 10 years ago by Matt Stancliff <[email protected]>
Previously, redisvAppendCommand() would return OOM even with formatting
errors. Now we use OTHE...
[This introduces some new API functions.]
* Adds new flag to the connection context indicating ...
7c4d2557c4bbc637514392cb725719790b50f677 authored about 10 years ago by mike <[email protected]>
[It doesn't _actually_ matter, but technically
the order argument is: (number of items, size of ...
redisAsyncInitialize() can return NULL, but then we pass
the return value from redisAsyncInitial...
Flags can occur in any order in format string, so we can't assume any order.
In original code, ...
b6a860795c0c97c59c79155640531b8c47c34ea3 authored about 10 years ago by Nan Xiao <[email protected]>
[Cleaned up:
- name of function: freeRedis... -> redisFree...
- return value of function (fr...
[Cleaned up Makefile and header includes. Didn't change crazy
coding style because it's the con...
If realloc fails, the curargv will be NULL.
Closes #253
e30c96ebdec4e8612f4102f9cd99d36488c66e5c authored about 10 years ago by NanXiao <[email protected]>Signed-off-by: Chris Lamb <[email protected]>
[Instead of checking for "not solaris" we fe...
85c6bfb02a2dacb9ccd0885f8c1cf807447ae1eb authored about 10 years ago by Chris Lamb <[email protected]>
Check whether the obuf or reader is empty: if one of the items is empty,
free the redisContext.
External callers may not know about sdsfree, so let's
give them an easy way to know how to free ...
This:
- Removes misplaced libuv function prototype
- Includes stdlib for free()
Closes #251
9c5731448976a0d2200c55b0370ae497835490a4 authored about 10 years ago by torque <torque@1>Closes #285
abbd3407852ec07fa2db028cfefb988f4f7af143 authored about 10 years ago by Mohnish Thallavajhula <[email protected]>If the string is already in the dict, we need to free this.
Original fix by @tt33415366.
Fixes...
2a6dbdd2252a038546f1c911957644df2a7d4fba authored about 10 years ago by Jan-Erik Rediger <[email protected]>
OK, perhaps the second time is a charm. I forgot that I had
hiredis forked from a long time ago...
Closes #267
865a3683a37dd8010506d1b36d20a7bef3a7b615 authored about 10 years ago by Chris Williams <[email protected]>
"sdscatpritf" -> "sdscatprintf"
Example used sdsempty("text") but should say sdsnew("text")
Clo...
2d814b8da368a4c7b2a477c09788637c98ba857f authored about 10 years ago by Gary Grossman <[email protected]>'const' where we can.
Closes #268
3315c098394252cbbe00c0a69ea159f345f4f8b1 authored about 10 years ago by Hang Su <[email protected]>Closes #293
a1f6ce019462644c7e68012d70fde9b5ab49687e authored about 10 years ago by Ryan Jacobs <[email protected]>Fix getaddrinfo() memory leak
8f60ee65327445ed8384290b4040685329eb03c5 authored over 10 years ago by Salvatore Sanfilippo <[email protected]>See antirez/redis#2012 for the leak causing unbounded memory growth.
537a8845d13509946344d47d6b3bc0be4211c7ac authored over 10 years ago by Matt Stancliff <[email protected]>Less surprising behaviour in redisFree() and freeReplyObject()
2602e1b6bc19dc191df0c50cd6502578fe492710 authored over 10 years ago by Pieter Noordhuis <[email protected]>
Test that redisFree() and freeReplyObject() do not crash when NULL is
passed in.
Make redisFree() and freeReplyObject() less surprising by behaving just
like free(). That is, do...
Closes #219.
f225c276be7fd0646019b51023e3f41566633dfe authored over 10 years ago by Pieter Noordhuis <[email protected]>8332a88393cc79b6f7d431859e5bbf157d8c1ea3 authored over 10 years ago by Pieter Noordhuis <[email protected]>
a9c21e4d48ecde49901e46e78ae87897fc182d52 authored over 10 years ago by Pieter Noordhuis <[email protected]>
Next version of hiredis
fa8bcca1dcf8fd87f3b3ce2853d1fe32526a0afa authored over 10 years ago by Pieter Noordhuis <[email protected]>
Solaris doesn't define the TCP options we try to set. Let's
ignore those under Solaris.
Closes...
4369ee5d086967883ee91597540a599e543eacd6 authored over 10 years ago by Matt Stancliff <[email protected]>
The existing way is not compatible with a lot of shells, including most
bash installations, beca...
Closes #202
66192a0052ec3f9936099a4d2c5512b4b0d89bf0 authored over 10 years ago by Axel Etcheverry <[email protected]>
This is a backport of
https://github.com/antirez/redis/commit/d01aad329c259a7276c448cee6696b04df...
SDS is now broken out of Redis into its own project, so include
the latest version from the SDS ...
This is backported from
https://github.com/antirez/redis/commit/289942b6259670fe3dcfaffdd0135c27...
Closes #206
4ede1bada156038b83aa2c883fc8bc836a120ac4 authored over 10 years ago by Charlie Somerville <[email protected]>Closes #189
f20f5ad10264a10d41aa2a47c029fba71820d62a authored over 10 years ago by John Graham <[email protected]>
These allows for easier integration of hiredis with external
code that wants to manage its fds, ...
Closes #186
303a0421ef0dd347715f4249e1620d04a832d7e9 authored over 10 years ago by ripcurld00d <[email protected]>
Some environments require binding to specific source addresses instead
of letting the system det...
redisCheckSocketError should only CheckSocketError and not
close any misbehaving sockets. If Ch...
All the assignments to cb are inside conditionals, so it's
vaguely possible it never gets initia...
With all the async connects and disconnects and error handling
going on in hiredis, we need to c...
Fix a couple of bugs uncovered by the Clang static analyzer
065e90557c2f2bce6205c5006144bec75638836f authored almost 11 years ago by Pieter Noordhuis <[email protected]>070da2162364100c4069a1842b2641ab95b46a1a authored almost 11 years ago by Charlie Somerville <[email protected]>
81c95a5fd3eadf51aaeb56524bb9e049cf70a129 authored almost 11 years ago by Charlie Somerville <[email protected]>
cc3ee4532533179c589d3f15feb0c76bed96cdb2 authored over 11 years ago by Pieter Noordhuis <[email protected]>
redisContextConnectTcp() is now able to use IPv6 addresses if there is
no IPv4 address found res...
This makes possible to use the example with IPv6 addresses and/or with a
different Redis instanc...
The struct timeval argument in redisConnectWithTimeout(),
redisConnectUnixWithTimeout(), redisSe...
c532edc27f51d302246aea1b26ff830511cdf5ec authored over 11 years ago by Pieter Noordhuis <[email protected]>
constify: constify some variables / functions
049346aa3399f98306656921350ca4f04e473e6b authored over 11 years ago by Pieter Noordhuis <[email protected]>Closes #121.
37a840dc2c0899e032e0fb05a0813e137a68f032 authored over 11 years ago by Wolfgang Richter <[email protected]>afc462d35d6940f77db843f7981377b5d0d75c89 authored over 11 years ago by Pieter Noordhuis <[email protected]>
f9ce2111bb4657639b00343311b980a0b6eda1d1 authored over 11 years ago by Pieter Noordhuis <[email protected]>
Added a call to redisFree()
Closes #148.
6cf2e85bd2bf1bb19da2d7fdbd819d8969776e7c authored over 11 years ago by Rafael Zanella <[email protected]>Closes #166.
c552ca6904f55c5eee40e309e31cf2d4325a84b6 authored over 11 years ago by Aaron Bedra <[email protected]>49de2cf99056bb5c33502ab86d9c397998d379ed authored over 11 years ago by Pieter Noordhuis <[email protected]>