summaryrefslogtreecommitdiff
path: root/src/ae.c
Commit message (Collapse)AuthorAgeFilesLines
* ae.c event loop: API to resize the fd set size on the run.antirez2013-06-281-0/+30
|
* Fixed many typos.guiquanz2013-01-191-3/+3
|
* ae.c: set errno when error is not a failing syscall.antirez2013-01-031-1/+5
| | | | | | In this way the caller is able to perform better error checking or to use strerror() without the risk of meaningless error messages being displayed.
* Include time.h in ae.c as we now use time().antirez2012-10-051-0/+1
|
* Force expire all timer events when system clock skew is detected.Jokea2012-10-041-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | When system time changes back, the timer will not worker properly hence some core functionality of redis will stop working(e.g. replication, bgsave, etc). See issue #633 for details. The patch saves the previous time and when a system clock skew is detected, it will force expire all timers. Modiifed by @antirez: the previous time was moved into the eventLoop structure to make sure the library is still thread safe as long as you use different event loops into different threads (otherwise you need some synchronization). More comments added about the reasoning at the base of the patch, that's worth reporting here: /* If the system clock is moved to the future, and then set back to the * right value, time events may be delayed in a random way. Often this * means that scheduled operations will not be performed soon enough. * * Here we try to detect system clock skews, and force all the time * events to be processed ASAP when this happens: the idea is that * processing events earlier is less dangerous than delaying them * indefinitely, and practice suggests it is. */
* Set fd to writable when poll(2) detects POLLERR or POLLHUP event.jokea2012-05-231-0/+2
|
* first cut at event port supportDave Pacheco2012-05-151-5/+9
|
* implement aeWait using poll(2). Fixes issue #267.jokea2012-04-061-13/+10
|
* A few small BSD related fixes.antirez2012-02-081-0/+1
|
* aeCreateEventLoop() cleanup on error unified in a single block (originalantirez2012-01-251-15/+11
| | | | | patch by Mukund Sivaraman, modified by me to make it simpler and to use my coding style).
* If aeApiCreate() fails, there's probably not much one can do, but in the ↵Mukund Sivaraman2012-01-251-0/+2
| | | | name of consistency...
* ae.c: solved a memory leak with no practical effects (since the eventantirez2011-12-161-0/+2
| | | | loop is never destroyed in Redis). Thanks to @anydot for noticing it.
* Max limit to 10k clients removed, this implements feature request on issue #194antirez2011-12-151-7/+17
|
* new ae.c API to get current events by file descriptor.antirez2011-11-211-0/+7
|
* redis.c split into many different C files.antirez2010-07-011-0/+390
networking related stuff moved into networking.c moved more code more work on layout of source code SDS instantaneuos memory saving. By Pieter and Salvatore at VMware ;) cleanly compiling again after the first split, now splitting it in more C files moving more things around... work in progress split replication code splitting more Sets split Hash split replication split even more splitting more splitting minor change