- 22 Jan, 2015 2 commits
-
-
Matt Stancliff authored
-
Matt Stancliff authored
This replaces the old intlen() implementation with a slightly faster way of counting digits. Implementation taken from the same place where digits10() in redis/src/util.c came from. The old 'intlen' allowed negative inputs, but no usage in hiredis was passing negative numbers, so that ability is removed. Also, the new implementation can count higher (uint64_t) instead of limited to just int as before. Fixes #295 by replacing implementation
-
- 05 Jan, 2015 6 commits
-
-
Matt Stancliff authored
The strerror_r API has two flavors depending on system options. The bad flavor uses a static buffer for returning results, so if you save the pointer from strerror_r, the string you're referencing becomes useless if anybody else calls strerror_r again The good flavor does what you expect: it writes the error to your buffer. This commit uses strerror_r directly if it's a good version or copies the static buffer into our private buffer if it's a bad version. Thanks to gemorin for explaining the problem and drafting a fix. Fixes #239
-
tzickel authored
Makes hiredis reading functions easier to include in external projects [fixed all merge conflicts against current version] Closes #249
-
Matt Stancliff authored
External callers may not know about sdsfree, so let's give them an easy way to know how to free their sds result.
-
Mareq authored
[Cleaned up: - name of function: freeRedis... -> redisFree... - return value of function (free doesn't return anything) - parameter type for function. - we don't need to free a char**, the char** is just for returning from the assignment functoin.] Closes #250
-
mike authored
[This introduces some new API functions.] * Adds new flag to the connection context indicating SO_REUSEADDR should be set. * Adds max number of retries constant for when connect() hits EADDRNOTAVAIL. * Adds new function, redisAsyncConnectBindWithReuse(), letting clients enable this functionality. [Removed trailing whitespace in new header lines.] Closes #264
-
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
-
- 10 Apr, 2014 1 commit
-
-
Pieter Noordhuis authored
-
- 09 Apr, 2014 2 commits
-
-
Axel Etcheverry authored
Closes #202
-
Eddy Jansson authored
These allows for easier integration of hiredis with external code that wants to manage its fds, say for instance in a pool. Closes #223
-
- 08 Apr, 2014 1 commit
-
-
Matt Stancliff authored
Some environments require binding to specific source addresses instead of letting the system determine which IP a connection should originate from. Closes #233
-
- 11 Jul, 2013 1 commit
-
-
Noah Williamsson authored
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>
-
- 29 Apr, 2013 1 commit
-
-
Allen.Dou authored
Make Connection KeepAlive being optional instead of default.
-
- 19 Apr, 2013 1 commit
-
-
Allen.Dou authored
Keep client alive even though no command was sent to server for a long time.
-
- 28 Aug, 2012 1 commit
-
-
Pieter Noordhuis authored
-
- 21 Aug, 2012 2 commits
-
-
antirez authored
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).
-
antirez authored
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.
-
- 11 Jul, 2012 1 commit
-
-
Alex Leverington authored
async: support for determining monitor mode, if so, repush replies callback in expectation of another reply.
-
- 02 Dec, 2011 1 commit
-
-
mrb authored
-
- 19 Jun, 2011 2 commits
-
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
This reverts commit 77540aa3. 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.
-
- 05 May, 2011 1 commit
-
-
Pieter Noordhuis authored
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.
-
- 22 Apr, 2011 1 commit
-
-
Pieter Noordhuis authored
-
- 21 Apr, 2011 14 commits
-
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
Pieter Noordhuis authored
-
- 20 Apr, 2011 1 commit
-
-
Pieter Noordhuis authored
-
- 04 Feb, 2011 1 commit
-
-
Pieter Noordhuis authored
-