summaryrefslogtreecommitdiff
path: root/adapters/libevent.h
AgeCommit message (Collapse)Author
2020-05-22Allow users to replace allocator and handle OOM everywhere. (#800)Michael Grunder
* Adds an indirection to every allocation/deallocation to allow users to plug in ones of their choosing (use custom functions, jemalloc, etc). * Gracefully handle OOM everywhere in hiredis. This should make it possible for users of the library to have more flexibility in how they handle such situations. * Changes `redisReaderTask->elements` from an `int` to a `long long` to prevent a possible overflow when transferring the task elements into a `redisReply`. * Adds a configurable `max elements` member to `redisReader` that defaults to 2^32 - 1. This can be set to "unlimited" by setting the value to zero.
2020-01-28Safe allocation wrappers (#754)Michael Grunder
Create allocation wrappers with a configurable OOM handler (defaults to abort()). See #752, #747
2019-02-20fix redisLibeventEvents initvalentino
2019-02-20libevent: call destroy from cleanupMark Nunberg
also, indentation fix
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 memory leaksvalentino
2019-02-20read/write timeoutsMark Nunberg
2017-03-28Update libevent.hzfz
event_del can not free the "e->rev" and "e->wev",that will leak when reconnect the redis
2016-05-20using new version libeventChris.Xin
2014-04-09Add missing license and copyright for adaptersantirez
This is a backport of https://github.com/antirez/redis/commit/d01aad329c259a7276c448cee6696b04dfa6f8c1
2011-06-27Convert the rest of the async adapters contain static functions for easier ↵R. Tyler Croy
linking
2011-04-21sys/types.h is included by libevent itselfPieter Noordhuis
2010-12-29Scope event library related data and hooks to a structPieter Noordhuis
2010-12-01Use extra field for adapter-specific dataPieter Noordhuis
This makes sure that the "data" field on the asynchronous context can be used for user-specific data.
2010-11-21add explicit casts for C++ compiles - C++ disallows implicit casts fromRyan Tecco
void*
2010-11-01Move libev/libevent headers to adapters directoryPieter Noordhuis