1. 05 Jan, 2015 2 commits
    • mike's avatar
      Add support for SO_REUSEADDR · 7c4d2557
      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
      7c4d2557
    • michael-grunder's avatar
      Improve redisAppendCommandArgv performance · 40f7035b
      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
      40f7035b
  2. 10 Apr, 2014 1 commit
  3. 09 Apr, 2014 2 commits
  4. 08 Apr, 2014 1 commit
  5. 11 Jul, 2013 1 commit
  6. 29 Apr, 2013 1 commit
  7. 19 Apr, 2013 1 commit
    • Allen.Dou's avatar
      SetKeepAlive · 8d5bc445
      Allen.Dou authored
      Keep client alive even though no command was sent to server for a long time.
      8d5bc445
  8. 28 Aug, 2012 1 commit
  9. 21 Aug, 2012 2 commits
    • antirez's avatar
      Max depth of multi-bulk reply moved from 2 to 7. · 51ab89d8
      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).
      51ab89d8
    • antirez's avatar
      Configurable reader max idle buffer size. · 7f095053
      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.
      7f095053
  10. 11 Jul, 2012 1 commit
  11. 02 Dec, 2011 1 commit
  12. 19 Jun, 2011 2 commits
  13. 05 May, 2011 1 commit
    • Pieter Noordhuis's avatar
      Add function to retrieve formatted reply · 77540aa3
      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.
      77540aa3
  14. 22 Apr, 2011 1 commit
  15. 21 Apr, 2011 14 commits
  16. 20 Apr, 2011 1 commit
  17. 04 Feb, 2011 1 commit
  18. 27 Jan, 2011 2 commits
  19. 07 Jan, 2011 1 commit
  20. 31 Dec, 2010 1 commit
  21. 28 Dec, 2010 2 commits