summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-13Merge pull request #658 from jinjiazhang/masterMark Nunberg
Fix Compile Error On Windows (Visual Studio)
2019-04-13Fix Compile Error On Windows (Visual Studio)jinjiazhang
2019-04-11fix blocking timeouts on SSL reads/writesMark Nunberg
2019-04-10build ssl example if ssl is enabledMark Nunberg
2019-04-10ensure that blocking timeout is setMark Nunberg
2019-04-02Merge pull request #652 from mbitsnbites/mingw-supportMark Nunberg
Add MinGW support
2019-04-01CMake: Minor modernizationm
Rely more on transitive dependencies, as provided by TARGET_LINK_LIBRARIES. Avoid using ADD_DEFINITIONS and INCLUDE_DIRECTORIES. This avoids leakage/pollution of defines and includes.
2019-04-01Port network layer to Winsockm
With this change, Hiredis builds with MinGW and runs on Windows.
2019-04-01Use recv/send instead of read/writem
The recv/send calls are more portable than read/write, since unlike the latter, the former work with Windows sockets. We also check for EWOULDBLOCK instead of EAGAIN. On most Unices, EAGAIN and EWOULDBLBOCK are the same thing. However, on Windows they are different, and send/recv are expected to give EWOULDBLOCK for non-blocking sockets.
2019-04-01Introduce a redisFD typem
The redisFD type should be equal to the system native socket file desciptor type (for POSIX, this is a plain int). We also introduce the REDIS_INVALID_FD value, which maps to -1 on POSIX systems.
2019-04-01Move network I/O calls to net.cm
This makes hiredis.c free from system calls related to socket I/O. This is also makes the treatment of raw socket connections more similar to the SSL backend.
2019-03-31Merge pull request #653 from michael-grunder/bad-domain-test-fixMark Nunberg
Fix NXDOMAIN test case
2019-03-31Fix NXDOMAIN test casemichael-grunder
As it turns out 'idontexist.com' actually does exist.
2019-03-11Retain the same semantics for connection error on connection timeoutMark Nunberg
This ensures that a disconnect occurs. This commit also ensures that disconnects will clean the socket even if the user is in no-auto-free mode
2019-02-21Merge pull request #645 from redis/sslMark Nunberg
SSL Support
2019-02-21SSL: build in travisMark Nunberg
2019-02-21cmake: ssl disabled by defaultMark Nunberg
2019-02-21Allow option for async connections to not automatically freeMark Nunberg
2019-02-21Fix ifeq condition (thanks @regae)Mark Nunberg
2019-02-20Disable SSL by defaultMark Nunberg
2019-02-20gitignore: dSYMMark Nunberg
2019-02-20Remove redundant line after rebaseMark Nunberg
2019-02-20fix redisLibeventEvents initvalentino
2019-02-20fix pkg configvalentino
2019-02-20fixed wrong memset argsMark Nunberg
2019-02-20libevent: call destroy from cleanupMark Nunberg
also, indentation fix
2019-02-20scrub redisContext before freeingMark Nunberg
This helps us detect use-after-free
2019-02-20Add EV_PERSIST flag to read eventsMark Nunberg
This will avoid the need to constantly reschedule the event
2019-02-20libevent: fix invalid mem access on delete within callback enterMark Nunberg
2019-02-20fix potential uninitialized readMark Nunberg
If callback was set before scheduleTimer was set (i..e before one of the attach()) calls.
2019-02-20CMake: update for SSLMark Nunberg
2019-02-20Fix memory leaksvalentino
2019-02-20Support SNIvalentino
2019-02-20Fix compilation on Ubuntuvalentino
2019-02-20Unix: set addrlen so async reconnect uses proper sizeMark Nunberg
2019-02-20Don't warn on missing field initializersMark Nunberg
2019-02-20minor fixes: initialize options struct with 0 alwaysMark Nunberg
also, clean up redisContextInit -- we're just zeoring the struct
2019-02-20libevent-example: Use timeoutMark Nunberg
2019-02-20Fix bug in options macroMark Nunberg
2019-02-20Allow connectWithOptions for async as wellMark Nunberg
2019-02-20read/write timeoutsMark Nunberg
2019-02-20Provide option-struct initializationMark Nunberg
This reduces the boilerplate of all the redisConnectXXX functions, and allows us to provide more connection options in the future.
2019-02-20Use SSL by defaultMark Nunberg
2019-02-20Don't add dead code for HIREDIS_NOSSLMark Nunberg
We changed this to `HIREDIS_SSL`
2019-02-20Minor SSL-related fixesMark Nunberg
2019-02-20Disable SSL by defaultMark Nunberg
2019-02-20SSL for async I/OMark Nunberg
2019-02-20Add SSL exampleMark Nunberg
2019-02-20Remove extra printfsMark Nunberg
2019-02-20Initial SSL (sync) implementationMark Nunberg