summaryrefslogtreecommitdiff
path: root/hiredis.c
AgeCommit message (Collapse)Author
2014-05-29Less 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-09Fix const correctnessPieter Noordhuis
2014-04-09Upgrade sds to latest versionantirez
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-09Add new redisAppendFormatedCommand with testsAxel Etcheverry
Closes #202
2014-04-09Add 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-08Add ability to bind source address on connectMatt 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-10Mark the timeout parameter as const in various functionsNoah 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-10Fix const-related compiler errorsPieter Noordhuis
2013-07-10Merge pull request #132 from nwmcsween/constifyPieter Noordhuis
constify: constify some variables / functions
2013-07-10Emphasize size_t length for %b formattingWolfgang Richter
Closes #121.
2013-04-30Make KeepAlive optionalAllen.Dou
Make Connection KeepAlive being optional instead of default.
2013-01-26Merge pull request #147 from hdoreau/d7e3268f48b457cb52336d264f8860b336faea9fPieter Noordhuis
Prevent hiredis from crashing on memory allocation failure
2013-01-22Made connect functions return NULL on alloc failures.Henri Doreau
Updated documentation and examples accordingly.
2012-11-12constify: constify some variables / functionsNathan McSween
2012-11-06Try again later for EINTR errors (see issue #99)Fabien MARTY
2012-08-21On 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-21Max 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-21Configurable 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-20DRY list of integer formatsChip Salzenberg
2011-12-02increase read depth by one, would allow ruby redis client to read from slowlogmrb
2011-11-28Fix minor inconsistencies in comment.John Zwinck
2011-07-09Abort on invalid formatPieter 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-09Use correct type when calling va_arg in formatterPieter Noordhuis
2011-06-19Revert "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-09Fix for issue #45Pieter Noordhuis
2011-05-05Add function to retrieve formatted replyPieter 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-21Update licensePieter Noordhuis
2011-04-21Let the async API segfault on OOM for nowPieter Noordhuis
2011-04-21Move chrtos to hiredis.c (not used elsewhere)Pieter Noordhuis
2011-04-21Handle OOM when doing blocking requestsPieter Noordhuis
2011-04-21More safetyPieter Noordhuis
2011-04-21Make command formatters gracefully abort when out of memoryPieter Noordhuis
2011-04-21More OOM checks in the protocol readerPieter Noordhuis
2011-04-21Include fmacros.h to make sure strerror_p is defined on LinuxPieter Noordhuis
2011-04-21Rename *ReplyReader* to *Reader*Pieter Noordhuis
2011-04-21Use static buffer for error string on contextPieter Noordhuis
2011-04-21Create protocol reader when creating contextPieter Noordhuis
2011-04-21Reply object functions can be set by the user after creating the readerPieter Noordhuis
2011-04-21Privdata can be set directly on the structPieter Noordhuis
2011-04-21Remove useless castsPieter Noordhuis
2011-04-21Return when memory cannot be allocatedPieter Noordhuis
2011-04-21Remove accessor functions now the redisReader struct is publicPieter Noordhuis
2011-04-21Make redisReader struct publicPieter Noordhuis
2011-04-21Test if there is a freeObject functionPieter Noordhuis
2011-04-20Use pre-allocated buffer for error strings in readerPieter Noordhuis
2011-04-20First pass at making the protocol reader properly handle OOMPieter Noordhuis
2011-04-03Lazily destroy protocol reader bufferPieter Noordhuis
2011-04-03Individual reply object functions may be NULLPieter Noordhuis
2011-03-06Fix formatCommand to work with all empty interpolationsPieter Noordhuis
2011-02-04Use select(2) for enforce a timeout on blocking connect(2)Pieter Noordhuis