Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-04-16 | Implement a reconnect method for the client context | Jan-Erik Rediger | |
Originally implemented by @abedra as part of #306. In case a write or read times out, we force an error state, because we can't guarantuee that the next read will get the right data. Instead we need to reconnect to have a clean-state connection, which is now easily possible with this method. | |||
2015-04-16 | Make this work on Redis 3.0 | Jan-Erik Rediger | |
2015-02-18 | Fix tests when assert() undefined | Matt Stancliff | |
Closes #309 (such as when -DNDEBUG disables all assert() macros) Inspired by keith-bennett-gbg, but re-rewritten to be more concise. | |||
2015-01-22 | Cleanup memory during test | Matt Stancliff | |
2015-01-08 | Use known-bad hostname when testing hostname fail | Matt Stancliff | |
Suggested at https://github.com/redis/hiredis/issues/294#issuecomment-69153074 This change also makes the test stop hanging for 10 to 30 seconds waiting for the resolver to timeout. Now the resolver immediately sees the hostname is bad and returns error without waiting for timeout. | |||
2015-01-08 | Update test error message detection for dead hosts | Matt Stancliff | |
Fixes #294 | |||
2014-05-29 | Add tests for redisFree() and freeReplyObject() | Daniel Melani | |
Test that redisFree() and freeReplyObject() do not crash when NULL is passed in. | |||
2014-04-09 | Add new redisAppendFormatedCommand with tests | Axel Etcheverry | |
Closes #202 | |||
2014-04-09 | Fix "host cannot be resolved test" test | ripcurld00d | |
Closes #186 | |||
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 | |||
2013-07-10 | Emphasize size_t length for %b formatting | Wolfgang Richter | |
Closes #121. | |||
2013-07-10 | Fix DNS error test (fixes #167) | Pieter Noordhuis | |
2013-05-01 | Merge branch 'gai_strerror' | Pieter Noordhuis | |
See pull request #153. | |||
2013-05-01 | Fix style | Pieter Noordhuis | |
2013-03-14 | Set error when invalid timeout value is given to redisConnectWithTimeout | Aaron Bedra | |
Closes #154 This commit properly sets the error value inside of redisContextWaitReady when an invalid sec or usec value is provided. Tests for each case are provided to demonstrate that the issue is properly fixed and to avoid regression. Signed-off-by: Aaron Bedra <aaron@aaronbedra.com> | |||
2013-02-23 | Fix tests for test_blocking_connection_errors(); | Thordur Bjornsson | |
Add strings to allow OpenBSD/OSX to pass. | |||
2013-01-22 | Made connect functions return NULL on alloc failures. | Henri Doreau | |
Updated documentation and examples accordingly. | |||
2012-08-27 | Test new maximum depth of multi-bulk replies | Pieter Noordhuis | |
2011-12-20 | more error messages | Chip Salzenberg | |
2011-12-02 | increase read depth by one, would allow ruby redis client to read from slowlog | mrb | |
2011-07-10 | Colorize test outcome | Pieter Noordhuis | |
2011-07-10 | Test all supported types for printf-like formatting | Pieter Noordhuis | |
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 | Update printf-formatting tests to fail | 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-18 | Remove private feature macros for Solaris from compiler flags | Pieter Noordhuis | |
2011-06-18 | Fix compiler warnings | Pieter Noordhuis | |
2011-06-09 | Fix for issue #45 | Pieter Noordhuis | |
2011-06-09 | Flag to disable throughput tests | Pieter Noordhuis | |
2011-05-29 | Exit with a non-zero status when tests failed | Pieter Noordhuis | |
2011-05-22 | More control over host/port and unix path in test.c | Pieter Noordhuis | |
2011-05-22 | Add "make check" target (useful for automated tests). | Piotr Sikora | |
While there, add "-p" option to "hiredis-test", so that we could run tests without interrupting Redis instance running on the default port. | |||
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 | Reflect rename in tests | Pieter Noordhuis | |
2011-04-21 | Create protocol reader when creating context | Pieter Noordhuis | |
2011-04-21 | State should not be reset after protocol error | Pieter Noordhuis | |
2011-04-19 | Use variable for throughput test iteration count | Pieter Noordhuis | |
2011-03-31 | Add pipelined throughput tests | Pieter Noordhuis | |
2011-03-06 | Fix formatCommand to work with all empty interpolations | Pieter Noordhuis | |
2011-01-27 | Properly reset state after protocol error in reply reader | Pieter Noordhuis | |
2011-01-27 | Avoid warnings with -Wstrict-prototypes | Pieter Noordhuis | |
2011-01-07 | Return error on socket timeout for a blocking context | Pieter Noordhuis | |
2010-12-02 | Add (nearly) full printf support by delegating to vsprintf | Pieter Noordhuis | |
2010-11-24 | Set error on unexpected nesting of multi bulks | Pieter Noordhuis | |
2010-11-22 | Make error messages consistent in casing | Pieter Noordhuis | |
2010-11-22 | Tests for behavior when connecting fails | Pieter Noordhuis | |
2010-11-22 | Make test for formatting commands using a vector more robust | Pieter Noordhuis | |
2010-11-22 | Fix formatting literal percent characters | Pieter Noordhuis | |
2010-11-22 | Correctly format commands with empty interpolated values | Pieter Noordhuis | |
2010-11-19 | Don't do a write(2) after QUIT | Pieter Noordhuis | |
This causes non-deterministic error messages because sometimes the socket will already be closed and sometimes it is yet to be closed. |