diff --git a/include/redisx.h b/include/redisx.h index 84f489e..bb62fd9 100644 --- a/include/redisx.h +++ b/include/redisx.h @@ -279,7 +279,24 @@ typedef struct Redis { typedef void (*RedisSubscriberCall)(const char *pattern, const char *channel, const char *msg, long length); /** - * User-specified callback function for handling RedisX errors. + * User-specified callback function for handling RedisX errors from socket-level read / write calls. + * It's mainly there for the application to perform any cleanup as necessary or to report the error. However, + * it can also interacti with the Redis instance in limited ways. The implementation should follow a set of + * basic rules: + * + * * * @param redis Pointer to the RedisX instance * @param channel the channel over which the error occurred