summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2019-02-20Update appveyor.yml to cmakeJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Update .travis-ci.yml to use cmakeJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Obey HIREDIS_SONAME for shared libraryJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Call project() with parsed version stringJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Enable make testJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Generate and install hiredis.pcJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Install async.hJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
2019-02-20Add ENABLE_EXAMPLES option, off by defaultJustin Brewer
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>