Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-05 | Improve redisAppendCommandArgv performance | michael-grunder | |
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 | |||
2014-05-29 | Less surprising behaviour. | Daniel Melani | |
Make redisFree() and freeReplyObject() less surprising by behaving just like free(). That is, don't crash when passing in NULL. | |||
2014-04-09 | Fix const correctness | Pieter Noordhuis | |
2014-04-09 | Upgrade sds to latest version | antirez | |
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 | |||
2014-04-09 | Add new redisAppendFormatedCommand with tests | Axel Etcheverry | |
Closes #202 | |||
2014-04-09 | Add redisConnectFd() and redisFreeKeepFd() | Eddy Jansson | |
These allows for easier integration of hiredis with external code that wants to manage its fds, say for instance in a pool. Closes #223 | |||
2014-04-08 | Add ability to bind source address on connect | Matt Stancliff | |
Some environments require binding to specific source addresses instead of letting the system determine which IP a connection should originate from. Closes #233 | |||
2013-07-10 | Mark the timeout parameter as const in various functions | Noah Williamsson | |
The struct timeval argument in redisConnectWithTimeout(), redisConnectUnixWithTimeout(), redisSetTimeout(), redisContextSetTimeout(), redisContextConnectTcp() and redisContextConnectUnix() is never modified and can therefore be marked as const. Signed-off-by: Noah Williamsson <noah.williamsson@gmail.com> | |||
2013-07-10 | Fix const-related compiler errors | Pieter Noordhuis | |
2013-07-10 | Merge pull request #132 from nwmcsween/constify | Pieter Noordhuis | |
constify: constify some variables / functions | |||
2013-07-10 | Emphasize size_t length for %b formatting | Wolfgang Richter | |
Closes #121. | |||
2013-04-30 | Make KeepAlive optional | Allen.Dou | |
Make Connection KeepAlive being optional instead of default. | |||
2013-01-26 | Merge pull request #147 from hdoreau/d7e3268f48b457cb52336d264f8860b336faea9f | Pieter Noordhuis | |
Prevent hiredis from crashing on memory allocation failure | |||
2013-01-22 | Made connect functions return NULL on alloc failures. | Henri Doreau | |
Updated documentation and examples accordingly. | |||
2012-11-12 | constify: constify some variables / functions | Nathan McSween | |
2012-11-06 | Try again later for EINTR errors (see issue #99) | Fabien MARTY | |
2012-08-21 | On stack buffer to read replies set to 16k (was 2k). | antirez | |
It was verified experimentally that this value, on Linux kernels, provides better performances compared to the 2k value. However larger values apparently don't produce any noticeable effect on performances. | |||
2012-08-21 | Max depth of multi-bulk reply moved from 2 to 7. | antirez | |
Hiredis can handle multi bulk replies with a fixed (hardcoded) level of nesting. This should be changed in the future in order to avoid hardcoded limits. As a quick fix this commit moves the max nesting from 2 to 7, so that there are no problems when processing replies from the SLOWLOG command, from Redis Sentinel, or generated by Redis Lua Scripts (that are allowed to generate replies with any level of nesting). | |||
2012-08-21 | Configurable reader max idle buffer size. | antirez | |
Hiredis used to free unused redisReader buffers bigger than 16k. Now this limit is configurable (see the documentation updated by this commit) in order to allow working with big payloads without incurring to speed penalty. | |||
2011-12-20 | DRY list of integer formats | Chip Salzenberg | |
2011-12-02 | increase read depth by one, would allow ruby redis client to read from slowlog | mrb | |
2011-11-28 | Fix minor inconsistencies in comment. | John Zwinck | |
2011-07-09 | Abort on invalid format | Pieter Noordhuis | |
There is no way we can guess the width of the argument when we cannot infer its type from the format specifier. | |||
2011-07-09 | Use correct type when calling va_arg in formatter | Pieter Noordhuis | |
2011-06-19 | Revert "Add function to retrieve formatted reply" | Pieter Noordhuis | |
This reverts commit 77540aa31694aa1e14d41f60a0452e49a2fed86a. The change in buffer strategy is too large to put in a minor release. It is put in a separate branch in the meantime, so it can be refined and released together with a minor version bump. | |||
2011-06-09 | Fix for issue #45 | Pieter Noordhuis | |
2011-05-05 | Add function to retrieve formatted reply | Pieter Noordhuis | |
This is done by only truncating the read buffer once a full reply has been read. The buffer is no longer truncated halfway through reading a reply. In addition: pass offset/length of protocol and content via the read tasks. | |||
2011-04-21 | Update license | Pieter Noordhuis | |
2011-04-21 | Let the async API segfault on OOM for now | Pieter Noordhuis | |
2011-04-21 | Move chrtos to hiredis.c (not used elsewhere) | Pieter Noordhuis | |
2011-04-21 | Handle OOM when doing blocking requests | Pieter Noordhuis | |
2011-04-21 | More safety | Pieter Noordhuis | |
2011-04-21 | Make command formatters gracefully abort when out of memory | Pieter Noordhuis | |
2011-04-21 | More OOM checks in the protocol reader | Pieter Noordhuis | |
2011-04-21 | Include fmacros.h to make sure strerror_p is defined on Linux | Pieter Noordhuis | |
2011-04-21 | Rename *ReplyReader* to *Reader* | Pieter Noordhuis | |
2011-04-21 | Use static buffer for error string on context | Pieter Noordhuis | |
2011-04-21 | Create protocol reader when creating context | Pieter Noordhuis | |
2011-04-21 | Reply object functions can be set by the user after creating the reader | Pieter Noordhuis | |
2011-04-21 | Privdata can be set directly on the struct | Pieter Noordhuis | |
2011-04-21 | Remove useless casts | Pieter Noordhuis | |
2011-04-21 | Return when memory cannot be allocated | Pieter Noordhuis | |
2011-04-21 | Remove accessor functions now the redisReader struct is public | Pieter Noordhuis | |
2011-04-21 | Make redisReader struct public | Pieter Noordhuis | |
2011-04-21 | Test if there is a freeObject function | Pieter Noordhuis | |
2011-04-20 | Use pre-allocated buffer for error strings in reader | Pieter Noordhuis | |
2011-04-20 | First pass at making the protocol reader properly handle OOM | Pieter Noordhuis | |
2011-04-03 | Lazily destroy protocol reader buffer | Pieter Noordhuis | |
2011-04-03 | Individual reply object functions may be NULL | Pieter Noordhuis | |
2011-03-06 | Fix formatCommand to work with all empty interpolations | Pieter Noordhuis | |