- 14 Aug, 2020 1 commit
-
-
michael-grunder authored
Hiredis needs to run in Windows so has a fair bit of logic to handle that environment. This isn't a requirement when packaging it in Redis, and to avoid having to maintain two copies of virtually the same library in memory, just use the one from Redis. There are a few places where Hiredis is checking for NULL return values from allocations, because we try to gracefully handle those situations. This isn't needed in Redis as it just hard aborts under such circumstances.
-
- 07 Jun, 2020 1 commit
-
-
Michael Grunder authored
Fix overflow bug in `sdsrange`
-
- 22 May, 2020 1 commit
-
-
Michael Grunder authored
* Adds an indirection to every allocation/deallocation to allow users to plug in ones of their choosing (use custom functions, jemalloc, etc). * Gracefully handle OOM everywhere in hiredis. This should make it possible for users of the library to have more flexibility in how they handle such situations. * Changes `redisReaderTask->elements` from an `int` to a `long long` to prevent a possible overflow when transferring the task elements into a `redisReply`. * Adds a configurable `max elements` member to `redisReader` that defaults to 2^32 - 1. This can be set to "unlimited" by setting the value to zero.
-
- 20 May, 2020 1 commit
-
-
Muhammad Zahalqa authored
Standard function available and on most platforms uses a lookup table and not a check with 3 ranges.
-
- 22 Jul, 2019 1 commit
-
-
Odin Hultgren Van Der Horst authored
- Removed whitespace before newline - Removed win style newline
-
- 17 Mar, 2018 1 commit
-
-
charsyam authored
-
- 09 Dec, 2016 1 commit
-
-
Jan-Erik Rediger authored
Closes #471
-
- 20 Apr, 2016 3 commits
-
-
charsyam authored
-
Jan-Erik Rediger authored
-
clark.kang authored
-
- 27 Oct, 2015 1 commit
-
-
charsyam authored
-
- 13 Mar, 2015 1 commit
-
-
tzickel authored
For hiredis-py and others support on windows.
-
- 05 Jan, 2015 3 commits
-
-
Matt Stancliff authored
-
michael-grunder authored
OK, perhaps the second time is a charm. I forgot that I had hiredis forked from a long time ago, so the initial pull request was hosed. :) * Pulled in sdscatfmt() from Redis, and modified it to accept a size_t (%T) style format specifier. * Pulled in sdsll2str() and sdsull2str() from Redis (needed by sdscatfmt). * Added a new method, redisFormatSdsCommandArgv() which takes and sds* as the target, rather than char* (and uses sdscatfmt instead of sprintf for the construction). I get roughly the following improvement: Old: 1.044806 New: 0.481620 The benchmark code itself can be found here: https://gist.github.com/michael-grunder/c92ef31bb632b3d0ad81 Closes #260
-
Gary Grossman authored
"sdscatpritf" -> "sdscatprintf" Example used sdsempty("text") but should say sdsnew("text") Closes #282
-
- 09 Apr, 2014 1 commit
-
-
antirez authored
SDS is now broken out of Redis into its own project, so include the latest version from the SDS repo. This is a backport of the Redis commit doing the same to the bundled hiredis: https://github.com/antirez/redis/commit/320fa02b9b48ee1c63d88db6344fc0d328e24853
-
- 15 Jan, 2014 1 commit
-
-
Charlie Somerville authored
-
- 02 Jul, 2013 1 commit
-
-
Richard Fuchs authored
-
- 21 Apr, 2011 2 commits
-
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
- 19 Apr, 2011 1 commit
-
-
Pieter Noordhuis authored
-
- 19 Jan, 2011 2 commits
-
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
- 20 Sep, 2010 1 commit
-
-
Pieter Noordhuis authored
-
- 25 May, 2010 1 commit
-
-
Pierre Riteau authored
The API is more similar to printf now.
-
- 18 May, 2010 1 commit
-
-
antirez authored
hiredis was extracted from redis-tools, reverted to standard malloc/free, ported to the new protocol, and started as a stand alone project in order to support the need of a C client in the Redis community
-