Commit Graph

14 Commits

Author SHA1 Message Date
Pieter Noordhuis
af7369a253 Use extra field for adapter-specific data
This makes sure that the "data" field on the asynchronous context can be
used for user-specific data.
2010-12-01 16:43:24 +01:00
Pieter Noordhuis
09a0fe626f Explicitly initialize struct fields to NULL 2010-11-15 21:53:22 +01:00
Pieter Noordhuis
f25a5267cc Allow to connect using a unix socket from hiredis 2010-11-03 11:38:26 +01:00
Pieter Noordhuis
ffa8666a64 Change error reporting to have an explicit type
When there is an I/O error, errno should be used to find out what is
wrong. In other cases, errno cannot be used. So, use an explicit type in
Hiredis to define the different error scenarios that can occur.
2010-11-02 16:36:38 +01:00
Pieter Noordhuis
30a9f8f271 Use existing function to append to the output buffer 2010-11-01 14:16:01 +01:00
Pieter Noordhuis
ac13c9f095 Only copy relevant fields from callback ptr to avoid copying garbage 2010-11-01 10:13:05 +01:00
Pieter Noordhuis
a66ec18e80 Make push/shift functions for callbacks responsible for malloc/free 2010-11-01 10:10:03 +01:00
Pieter Noordhuis
e25db30f38 Run pending callbacks with NULL reply on error 2010-11-01 10:01:34 +01:00
Pieter Noordhuis
8b0fddcb02 Clarify redisAsyncDisconnect behavior in comments 2010-11-01 09:53:54 +01:00
Pieter Noordhuis
ad2456047e Process callbacks after reading 2010-11-01 09:53:34 +01:00
Pieter Noordhuis
c43256633c Cleanup function should remove read/write events 2010-11-01 09:53:18 +01:00
Pieter Noordhuis
437eea80fc Make error ptr accessible from async context 2010-11-01 09:52:17 +01:00
Pieter Noordhuis
4e3bd7893d Add support to lazily disconnect an asynchronous connection 2010-11-01 09:27:43 +01:00
Pieter Noordhuis
0152f12807 Extracted code to support callbacks in an asynchronous context 2010-10-31 21:20:47 +01:00