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

Revert "Always compile with C99 standard."

This reverts commit d8145d79ce715054980938c751067ebaa541573c.

8999750f12ba61f7ec550c38c5eada235f6bc06b authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Renamed redisContext struct member 'unix' to 'unix_sock' to avoid encountering defined constant 'unix' in GNU C environment (see commit d8145d79ce715054980938c751067ebaa541573c).

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]>
Merge pull request #324 from redis/fix-spontaneous-reply-leak

Fix memory leak in async spontaneous reply handling

b9f907fb4c1ce5280f26f61d611b9fcedcf6add4 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Fix memory leak in async spontaneous reply handling

When an asynchronous hiredis connection subscribes to a Pub/Sub channel
and gets an error, and i...

2fc39eb4c35ad6c66a1b832a81d1519dcf5fe856 authored over 9 years ago by antirez <[email protected]>
Always compile with C99 standard.

Turns out: gnu9x defines `unix` to 1, making it unusable as a variable
name.

d8145d79ce715054980938c751067ebaa541573c authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Release version 0.13.0

31436c33ac0cc68f288ddac6addb1f3618985c52 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Add current maintainer to README

4b30b5812d32b4e06da6c913d954408e5387e276 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Change copyright date and add copyright holder

af598dbce5bc896af9947cb0f0678de442ab92f2 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Document reconnect method

b676007253ae48e2863abe969427fe3eb17a5b82 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Implement a reconnect method for the client context

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]>
Make this work on Redis 3.0

b872919463fbc04c3a8fde113cb9ae89dfcb3859 authored over 9 years ago by Jan-Erik Rediger <[email protected]>
Merge pull request #318 from neonquill/fix-install-target

Add PKGCONFNAME to install dependencies.

27d4dcb6f03b43b0f6d62a3982e80c5744105422 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Add PKGCONFNAME to install dependencies.

Attempting to use the install target before the make target works fine,
except for the missing p...

dc13bc8627c374a4381819a8f02802e39b081f31 authored almost 10 years ago by David Watson <[email protected]>
Merge pull request #314 from tzickel/master

Added support for compiling the parser code with Microsoft Visual C compiler.

421e0f33f45a1a175149b270032c75f533cea0e3 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Correct escaping for prefix in pkgconf file

30814af63cfaecd5c371e82e0bb484802e5dff67 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Merge pull request #316 from boardwalk/master

Fix hiredis.pc generation.

5c12fa4ce493e516802916308ef5d181db58dfc4 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Fix hiredis.pc generation.

97364ed59ab6b56297c5e23a4147ccfa5c981208 authored almost 10 years ago by Dan Skorupski <[email protected]>
Merge pull request #315 from badboy/travis-fix

Update apt repos first

796305a307217ab3128adf75447695743a09aff7 authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Update apt repos first

0f6ad5c460f208badb7afb238efb2d29eae2247c authored almost 10 years ago by Jan-Erik Rediger <[email protected]>
Added support for compiling the parser code with Microsoft Visual C compiler.

For hiredis-py and others support on windows.

ec229678c22e673e8d48070593f7b028a514882a authored almost 10 years ago by tzickel <private@com>
Fix pkgconf file: escaping needed

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]>
Fix tests when assert() undefined

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]>
Fix pkgconf when used with DESTDIR

Closes #302

6b122d43f968f2104032379f183cdbfd453e1472 authored almost 10 years ago by Matt Stancliff <[email protected]>
Add more travis tests

Adds travis testing for 32bit builds as well as compile warnings
on 64 bit and 32 bit builds.

d3fb491b85a88ac118b9514ef1ba1aeffe9c333c authored almost 10 years ago by Matt Stancliff <[email protected]>
Release hiredis 0.12.1

Major fix:
- `make install` now works properly

Minor fix:
- `make test` now works after `ma...

9be3a07d8af4fae5ab3efc626bf674d9310571bb authored almost 10 years ago by Matt Stancliff <[email protected]>
Build test binary by default

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]>
Fix pkgconf build dependency

We need to re-gen pkgconf when the version changes, and the version
is kept in hiredis.h, so mak...

74f53e30dbee94525ee23ae344c4fd30f5ddde87 authored almost 10 years ago by Matt Stancliff <[email protected]>
Fix Makefile install problems

Adds DESTDIR support
Fixes INSTALL_PKGCONF_PATH
Properly copies {read,shs}.h now during make ins...

4355ab3c8fa7ad98b8a21267f84ebbaf47e2d2f8 authored almost 10 years ago by Sebastian Wiedenroth <[email protected]>
Update changelog for 0.12.0

bbd6044e35740a13bcd9951a7d912ec12a9c82b9 authored almost 10 years ago by Matt Stancliff <[email protected]>
Add valgrind to TravisCI testing

dd680fcc14ca2b950fd454577fcf532d58ffa7b5 authored almost 10 years ago by Matt Stancliff <[email protected]>
Improve digit counting for multibulk creation

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]>
Increase version to 0.12.0

7b51834c165133cf6816b1991920a55bdc64ea78 authored almost 10 years ago by Matt Stancliff <[email protected]>
Cleanup memory during test

3c023ee1572fb4dcbbc526b9c64cf3bc315464db authored almost 10 years ago by Matt Stancliff <[email protected]>
Use known-bad hostname when testing hostname fail

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]>
Update test error message detection for dead hosts

Fixes #294

c642079a8055a84be770a6eb44e66bcbb42820bd authored almost 10 years ago by Matt Stancliff <[email protected]>
Silence _BSD_SOURCE warnings

glibc 2.20 requires _DEFAULT_SOURCE and doesn't like _BSD_SOURCE alone

Also see:
- https://git...

74b7495f9308f2c183ff24fa482c5304a444cd90 authored about 10 years ago by Matt Stancliff <[email protected]>
Update dependency list in Makefile

dad05164231338092cdcbebf266f7101f53bc164 authored about 10 years ago by Matt Stancliff <[email protected]>
Build static library by default

9abfdf940569fe6a7b34793e017c0de7f76ec48e authored about 10 years ago by Matt Stancliff <[email protected]>
Generate pkgconf during build

The pkgconf source is localized to the Makefile, so we're not dropping
an unnecessary "hiredis.p...

1d2b4d38db86fe7ea97855373a5f3797becd06ab authored about 10 years ago by Matt Stancliff <[email protected]>
Cleanup tabs and end of line whitespace

f28872ca704ea162d970251ad20d1a0752506cfc authored about 10 years ago by Matt Stancliff <[email protected]>
Fix errno error buffers to not clobber errors

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]>
Refactor reading code into read.c

Makes hiredis reading functions easier to include in external projects

[fixed all merge conflic...

ba3e74c40888fe773290fda2561fdae5d5bb53c7 authored about 10 years ago by tzickel <private@com>
Fix sds building with C++

These should really just be macros to shut up our type system.

0cacb485feeb5318bd09b013833ca6e9026a5cc0 authored about 10 years ago by Matt Stancliff <[email protected]>
Fix redisAppendCommand error result

Previously, redisvAppendCommand() would return OOM even with formatting
errors. Now we use OTHE...

6a00a4643baaa920b182eb65ee82d9b8c23e3134 authored about 10 years ago by Matt Stancliff <[email protected]>
Add support for SO_REUSEADDR

[This introduces some new API functions.]

* Adds new flag to the connection context indicating ...

7c4d2557c4bbc637514392cb725719790b50f677 authored about 10 years ago by mike <[email protected]>
Improve calloc() correctness

[It doesn't _actually_ matter, but technically
the order argument is: (number of items, size of ...

a1bc89b23621df61437619eec849a6a8bcc30a03 authored about 10 years ago by jinguoli <[email protected]>
Fix clang analyzer warning

redisAsyncInitialize() can return NULL, but then we pass
the return value from redisAsyncInitial...

9b83ddc2d99ffc2b650e7efc9e0ed82ecb37fdf3 authored about 10 years ago by Matt Stancliff <[email protected]>
Fix redisvFormatCommand format parsing

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]>
Add API to free hiredis (char *) formattings

[Cleaned up:
- name of function: freeRedis... -> redisFree...
- return value of function (fr...

1b392eb796ed3853392109dfadb34a98fa37d61b authored about 10 years ago by Mareq <[email protected]>
Add GLib 2.0 adapter

[Cleaned up Makefile and header includes. Didn't change crazy
coding style because it's the con...

0c9ff5bb030fd07706c39b3d4f28cef618dd8794 authored about 10 years ago by Christian Hergert <[email protected]>
Add empty pointer check in error cleanup

If realloc fails, the curargv will be NULL.

Closes #253

e30c96ebdec4e8612f4102f9cd99d36488c66e5c authored about 10 years ago by NanXiao <[email protected]>
Fix build under kfreebsd

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]>
Add error check in redisContextInit

Check whether the obuf or reader is empty: if one of the items is empty,
free the redisContext.

d1e820d8ee01583e1db13ff27ec32dc94e18641d authored about 10 years ago by NanXiao <[email protected]>
Add API to free hiredis (sds) formattings

External callers may not know about sdsfree, so let's
give them an easy way to know how to free ...

9a753b42519a6d0f1998ff5b1c09e63fcc72749a authored about 10 years ago by Matt Stancliff <[email protected]>
Cleanup libuv adapter

This:
- Removes misplaced libuv function prototype
- Includes stdlib for free()

Closes #251

9c5731448976a0d2200c55b0370ae497835490a4 authored about 10 years ago by torque <torque@1>
Fix README typo

Closes #285

abbd3407852ec07fa2db028cfefb988f4f7af143 authored about 10 years ago by Mohnish Thallavajhula <[email protected]>
Free string if it is unused

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]>
Improve redisAppendCommandArgv performance

OK, perhaps the second time is a charm. I forgot that I had
hiredis forked from a long time ago...

40f7035ba47c3cdf161e3801d89fcc8afbd0c458 authored about 10 years ago by michael-grunder <[email protected]>
Fix README typos

Closes #267

865a3683a37dd8010506d1b36d20a7bef3a7b615 authored about 10 years ago by Chris Williams <[email protected]>
Fix minor comment problems

"sdscatpritf" -> "sdscatprintf"
Example used sdsempty("text") but should say sdsnew("text")

Clo...

2d814b8da368a4c7b2a477c09788637c98ba857f authored about 10 years ago by Gary Grossman <[email protected]>
Use stricter function argument types

'const' where we can.

Closes #268

3315c098394252cbbe00c0a69ea159f345f4f8b1 authored about 10 years ago by Hang Su <[email protected]>
Add syntax highlighting to README.md

Closes #293

a1f6ce019462644c7e68012d70fde9b5ab49687e authored about 10 years ago by Ryan Jacobs <[email protected]>
Merge pull request #274 from mattsta/fix-memory-leak

Fix getaddrinfo() memory leak

8f60ee65327445ed8384290b4040685329eb03c5 authored over 10 years ago by Salvatore Sanfilippo <[email protected]>
Fix getaddrinfo() memory leak

See antirez/redis#2012 for the leak causing unbounded memory growth.

537a8845d13509946344d47d6b3bc0be4211c7ac authored over 10 years ago by Matt Stancliff <[email protected]>
Merge pull request #246 from dmelani/master

Less surprising behaviour in redisFree() and freeReplyObject()

2602e1b6bc19dc191df0c50cd6502578fe492710 authored over 10 years ago by Pieter Noordhuis <[email protected]>
Add tests for redisFree() and freeReplyObject()

Test that redisFree() and freeReplyObject() do not crash when NULL is
passed in.

21a1207ae13f3d422fb99669019836da3422b784 authored over 10 years ago by Daniel Melani <[email protected]>
Less surprising behaviour.

Make redisFree() and freeReplyObject() less surprising by behaving just
like free(). That is, do...

05b85ebe7ffcfe41f084b6f46ab49a4f21c0eb22 authored over 10 years ago by Daniel Melani <[email protected]>
Fix HIREDIS_MINOR

Closes #219.

f225c276be7fd0646019b51023e3f41566633dfe authored over 10 years ago by Pieter Noordhuis <[email protected]>
File descriptors can be 0

8332a88393cc79b6f7d431859e5bbf157d8c1ea3 authored over 10 years ago by Pieter Noordhuis <[email protected]>
Fix const correctness

a9c21e4d48ecde49901e46e78ae87897fc182d52 authored over 10 years ago by Pieter Noordhuis <[email protected]>
Merge pull request #234 from mattsta/next-version

Next version of hiredis

fa8bcca1dcf8fd87f3b3ce2853d1fe32526a0afa authored over 10 years ago by Pieter Noordhuis <[email protected]>
Fix build under Solaris

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]>
Fix Makefile test to use more compatible syntax

The existing way is not compatible with a lot of shells, including most
bash installations, beca...

05fb7be3eaa94b50b9d4d81f105d5d872c8591a0 authored over 10 years ago by Eddy Jansson <[email protected]>
Add new redisAppendFormatedCommand with tests

Closes #202

66192a0052ec3f9936099a4d2c5512b4b0d89bf0 authored over 10 years ago by Axel Etcheverry <[email protected]>
Add missing license and copyright for adapters

This is a backport of
https://github.com/antirez/redis/commit/d01aad329c259a7276c448cee6696b04df...

2d66c4814e9a3ab40dfcc114e3eaf55dbeb70d29 authored over 10 years ago by antirez <[email protected]>
Upgrade sds to latest version

SDS is now broken out of Redis into its own project, so include
the latest version from the SDS ...

334525359acb3889c7a98b3c92fbb9b1e311a019 authored over 10 years ago by antirez <[email protected]>
Define _XOPEN_SOURCE for NetBSD

This is backported from
https://github.com/antirez/redis/commit/289942b6259670fe3dcfaffdd0135c27...

4441fa3513e8b7bcd95d6b03dc56e0d538f264ca authored over 10 years ago by Patrick TJ McPhee <[email protected]>
Define redisLibuvAttach as static

Closes #206

4ede1bada156038b83aa2c883fc8bc836a120ac4 authored over 10 years ago by Charlie Somerville <[email protected]>
Libuv: Fix compile warnings and C++ compatability

Closes #189

f20f5ad10264a10d41aa2a47c029fba71820d62a authored over 10 years ago by John Graham <[email protected]>
Add redisConnectFd() and redisFreeKeepFd()

These allows for easier integration of hiredis with external
code that wants to manage its fds, ...

ae30d58ff91061e0b0f889f60a9ab2062fa4e9d0 authored over 10 years ago by Eddy Jansson <[email protected]>
Fix "host cannot be resolved test" test

Closes #186

303a0421ef0dd347715f4249e1620d04a832d7e9 authored over 10 years ago by ripcurld00d <[email protected]>
Add ability to bind source address on connect

Some environments require binding to specific source addresses instead
of letting the system det...

37d25a392c9b9468e064a67c504939c9c4ea0031 authored over 10 years ago by Matt Stancliff <[email protected]>
Stop redisCheckSocketError from more than checking

redisCheckSocketError should only CheckSocketError and not
close any misbehaving sockets. If Ch...

e35266e68fa2f9a292639eb7e499eace226101d0 authored over 10 years ago by Matt Stancliff <[email protected]>
Fix potential undefined struct read

All the assignments to cb are inside conditionals, so it's
vaguely possible it never gets initia...

61eeedbe77a7fef16e44b6fe215a689b7911044e authored over 10 years ago by Matt Stancliff <[email protected]>
Remove possiblity of multiple close on same fd

With all the async connects and disconnects and error handling
going on in hiredis, we need to c...

7f0c7a29fd4d0f0623db522501c2b66eb8ebb94d authored over 10 years ago by Matt Stancliff <[email protected]>
Merge pull request #215 from charliesome/fix-bugs

Fix a couple of bugs uncovered by the Clang static analyzer

065e90557c2f2bce6205c5006144bec75638836f authored almost 11 years ago by Pieter Noordhuis <[email protected]>
async.c: avoid a NULL deref when redisAsyncInitialize returns NULL

070da2162364100c4069a1842b2641ab95b46a1a authored almost 11 years ago by Charlie Somerville <[email protected]>
sds.c: avoid leaking tokens when seplen < 1 || len < 0

81c95a5fd3eadf51aaeb56524bb9e049cf70a129 authored almost 11 years ago by Charlie Somerville <[email protected]>
Merge branch 'ipv6'

cc3ee4532533179c589d3f15feb0c76bed96cdb2 authored over 11 years ago by Pieter Noordhuis <[email protected]>
Minimal IPv6 support.

redisContextConnectTcp() is now able to use IPv6 addresses if there is
no IPv4 address found res...

06919b3f86b1c821eb1a53d4e1d7c74c78fe00e1 authored over 11 years ago by antirez <[email protected]>
example.c: it is now possible to specify server ip/port.

This makes possible to use the example with IPv6 addresses and/or with a
different Redis instanc...

253e796a59c68a0ccc57c156cfa61f97e97afad6 authored over 11 years ago by antirez <[email protected]>
Mark the timeout parameter as const in various functions

The struct timeval argument in redisConnectWithTimeout(),
redisConnectUnixWithTimeout(), redisSe...

fbf1bb648e2e71a354ff4a1c0db07be2b3673a8a authored over 11 years ago by Noah Williamsson <[email protected]>
Fix const-related compiler errors

c532edc27f51d302246aea1b26ff830511cdf5ec authored over 11 years ago by Pieter Noordhuis <[email protected]>
Merge pull request #132 from nwmcsween/constify

constify: constify some variables / functions

049346aa3399f98306656921350ca4f04e473e6b authored over 11 years ago by Pieter Noordhuis <[email protected]>
Emphasize size_t length for %b formatting

Closes #121.

37a840dc2c0899e032e0fb05a0813e137a68f032 authored over 11 years ago by Wolfgang Richter <[email protected]>
Add note about multi bulk nesting limit (fixes #143)

afc462d35d6940f77db843f7981377b5d0d75c89 authored over 11 years ago by Pieter Noordhuis <[email protected]>
Whitespace

f9ce2111bb4657639b00343311b980a0b6eda1d1 authored over 11 years ago by Pieter Noordhuis <[email protected]>
Update example.c

Added a call to redisFree()

Closes #148.

6cf2e85bd2bf1bb19da2d7fdbd819d8969776e7c authored over 11 years ago by Rafael Zanella <[email protected]>
Move examples into their own folder

Closes #166.

c552ca6904f55c5eee40e309e31cf2d4325a84b6 authored over 11 years ago by Aaron Bedra <[email protected]>
Fix DNS error test (fixes #167)

49de2cf99056bb5c33502ab86d9c397998d379ed authored over 11 years ago by Pieter Noordhuis <[email protected]>