summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-04Remove nested depth limitation. (#797)Michael Grunder
* Remove nested depth limitation. This commit removes the nested multi-bulk depth limitation of 7. We do this by switching to pointer to pointer indirection and growing the stack in chunks when needed. See: #794, #421
2020-05-04Support timeouts in libev adapater (#795)Michael Grunder
Add support for timeouts in our libev adapter. See #795
2020-04-23Attempt to fix compilation on Solaris (#796)Michael Grunder
See #757
2020-04-23Fix pkgconfig when installing to a custom lib dir (#793)Michael Grunder
* Respect overridden libdir in CMake See: #767
2020-04-13Fix USE_SSL=1 make/cmake on OSX and CMake tests (#789)Michael Grunder
* Fix linker problems when building with SSL enabled on OSX * Corrects `HIREDIS_SSL=ON` to `USE_SSL=ON` so we test building with SSL enabled on travis.
2020-04-09Provides an optional cleanup callback for async data.Nick Rivera
2020-04-09Use correct libuv call on Windows (#784)Michael Grunder
Explicitly call `uv_poll_init_socket` as that has slightly different semantics on Windows (and is identical to `uv_poll_init` on Linux). http://docs.libuv.org/en/v1.x/poll.html#c.uv_poll_init_socket
2020-04-09Added CMake package config and fixed hiredis_ssl on Windows (#783)Michael Grunder
* Add CMake package configuration so hiredis can be more easily included in other projects. * Fixes hiredis_ssl such that it compiles and works in windows Co-authored-by: nrivera <nrivera@blizzard.com> Co-authored-by: Nick <heronr1@gmail.com>
2020-04-07Merge pull request #780 from yossigo/fix/cmake_ssl_so_versionMichael Grunder
CMake: Set hiredis_ssl shared object version.
2020-04-07CMake: Set hiredis_ssl shared object version.Yossi Gottlieb
2020-04-02Win32 tests and timeout fix (#776)Michael Grunder
Unit tests in Windows and a Windows timeout fix This commit gets our unit tests compiling and running on Windows as well as removes a duplicated `timeval` -> `DWORD` conversion logic in sockcompat.c There are minor differences in behavior between Linux and Windows to note: 1. In Windows, opening a non-existent hangs forever in WSAPoll whereas it correctly returns with a "Connection refused" error on Linux. For that reason, I simply skip this test in Windows. It may be related to this known issue: https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/ 2. Timeouts are handled slightly differently in Windows and Linux. In Linux, we intentionally set REDIS_ERR_IO for connection timeouts whereas in Windows we set REDIS_ERR_TIMEOUT. It may be prudent to fix this discrepancy although there are almost certainly users relying on the current behavior.
2020-04-02Const correctnessmichael-grunder
Fixes #778
2020-03-14Add release pattern for automatic CImichael-grunder
2020-03-13Actually define include guardmichael-grunder
2020-02-28Bump version to 0.15.0michael-grunder
2020-02-27Housekeeping fixes (#764)Michael Grunder
Housekeeping * Check for C++ (#758, #750) * Include `alloc.h` in `make install` and `cmake` * Add a `.def` file for Windows (#760) * Include allocation wrappers referenced in adapter headers * Fix minor syntax errors and typos in README * Fix CI in Windows by properly escaping arguments (#761)
2020-01-29Merge pull request #756 from ch1aki/fix-make-installMichael Grunder
install alloc.h
2020-01-29install alloc.hakichan
alloc.h added in # 754 But not added to INSTALL_INCLUDE_PATH
2020-01-28Safe allocation wrappers (#754)Michael Grunder
Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747
2020-01-01Merge pull request #746 from ShooterIT/spellingMichael Grunder
fix spelling mistakes
2020-01-01fix spelling mistakesShooterIT
2019-12-18Merge pull request #741 from redis/redisgetreply-nullMichael Grunder
Free the reply in redisGetReply when passed NULL
2019-12-12Free the reply in redisGetReply when passed NULLmichael-grunder
We currently perform a NULL check in redisGetReply and don't push the reply back to the caller, but we don't free any reply meaning that this will leak memory: redisGetReply(context, NULL); This change simply frees the reply if we were passed NULL. Addresses #740
2019-12-05Merge pull request #727 from pbotros/botros/disable-tests-cmakeMichael Grunder
Adding an option to DISABLE_TESTS
2019-11-25Merge pull request #737 from natoscott/masterMichael Grunder
Fix dead code in sslLogCallback relating to should_log variable.
2019-11-25Fix dead code in sslLogCallback relating to should_log variable.Nathan Scott
Coverity scans found that the should_log logic in sslLogCallback is not working as expected because the variable is not correctly initialised (the conditional code before logging always sets the value to 1, which it already is).
2019-11-19Merge pull request #731 from Kevin-Xi/patch-1Michael Grunder
Fix typo in dict.c.
2019-11-20Fix typo in dict.c.Kevin
2019-11-03Adding an option to DISABLE_TESTSPaul Botros
Useful when hiredis is used as a CMake dependency in other projects and added via add_subdirectory(). With DISABLE_TESTS on, `make test` in the parent project won't run hiredis tests.
2019-10-10Use correct flag in README.mdmichael-grunder
2019-10-10Merge pull request #720 from yossigo/ssl-docsMichael Grunder
Update README with SSL support.
2019-10-08Merge pull request #715 from redis/test-leaksMichael Grunder
Fixes leaks in unit tests
2019-10-07Update README with SSL support.Yossi Gottlieb
2019-09-25Fixes leaks in unit testsmichael-grunder
redisFormatSdsCommandArgv takes an sds* and calls sdsempty() for us. Addresses #714
2019-09-16Merge pull request #711 from yossigo/ssl-testsMark Nunberg
SSL Tests
2019-09-16Add SSL mode tests.Yossi Gottlieb
This repeats all existing tests in SSL mode, but does not yet provide SSL-specific tests.
2019-09-16Make SSL timeout error compatible with rest.Yossi Gottlieb
2019-09-16Fix: redisReconnect() should clear SSL context.Yossi Gottlieb
We should not attempt to keep the context and re-establish the TLS connection for several reasons: 1. Maintain symmetry between redisConnect() and redisReconnect(), so in both cases an extra step is required to initiate SSL. 2. The caller may also wish to reconfigure the SSL session and needs a chance to do that. 3. It is not a practical thing to do on an async non-blocking connection context.
2019-09-16Merge pull request #708 from yossigo/wip/ssl-reorganizationMark Nunberg
SSL Reorganization
2019-09-01Update CMakelists for hiredis/hiredis_ssl builds.Yossi Gottlieb
Also rename the SSL option from `HIREDIS_SSL` to `ENABLE_SSL` to conform with CMake convnetions.
2019-09-01Separate hiredis and hiredis_ssl library build.Yossi Gottlieb
2019-09-01Use a const funcs in redisContext.Yossi Gottlieb
2019-08-29Update CMakeLists with sslio.c rename.Yossi Gottlieb
2019-08-29Rename sslio.Yossi Gottlieb
2019-08-29wip: SSL code reorganization, see #705.Yossi Gottlieb
2019-08-29Merge pull request #706 from yossigo/fix/msvcMark Nunberg
Fix MSVC build.
2019-08-28Fix MSVC build.Yossi Gottlieb
2019-08-27Merge pull request #702 from yossigo/report-connect-errorsMark Nunberg
SSL: Properly report SSL_connect() errors.
2019-08-27Merge pull request #697 from yossigo/resp3Mark Nunberg
Port RESP3 support from Redis.
2019-08-27Merge pull request #699 from yossigo/silent-ssl-traceMark Nunberg
Silent SSL trace to stdout by default.