summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2013-11-06signal: suppress libev strict-aliasing warningssignalAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
2013-11-06signal: add support for looking up signals by numberAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> Signed-off-by: Emil Renner Berthing <esmil@mailme.dk>
2013-11-06signal: add testAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> Signed-off-by: Emil Renner Berthing <esmil@mailme.dk>
2013-11-06signal: handle sigchild separatelyAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> Signed-off-by: Emil Renner Berthing <esmil@mailme.dk>
2013-11-06signal: add signal lookupAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> Signed-off-by: Emil Renner Berthing <esmil@mailme.dk>
2013-11-06signal: initial signal handlingAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz> Signed-off-by: Emil Renner Berthing <esmil@mailme.dk>
2013-11-05use CFLAGS, CPPFLAGS and LDFLAGS properlyEmil Renner Berthing
2013-08-27add built-time assertionsEmil Renner Berthing
2013-08-27parsers: give parsers a set amount of space for stateEmil Renner Berthing
..and don't try to cram all parser states into the same struct.
2013-08-27http.server: fix typoAsbjørn Sloth Tønnesen
Introduced in: > commit e7f888ccadce6ec68a6da783282bb342785d763d > Author: Emil Renner Berthing <esmil@mailme.dk> > Date: Mon Aug 19 01:10:11 2013 +0200 > > http: factor out response module Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.dk>
2013-08-26pool: better APIEmil Renner Berthing
The thread pool doesn't actually need the Lua thread, so let the callers handle that. Also if we don't care about the return allow the reaper function to be NULL and automatically free the lem_async struct when the worker is done.
2013-08-22hathaway: htest: fix single instance API usageAsbjørn Sloth Tønnesen
When using the single instance API hathaway.debug MUST be overwritten before calling import in order to have any effect. Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
2013-08-22hathaway: support multiple instancesAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
2013-08-21hathaway: remove unnecessary scope indentationAsbjørn Sloth Tønnesen
Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
2013-08-21http: move Request and Response objects outEmil Renner Berthing
..to http.server and http.client modules respectively, and don't tie them to the parser.
2013-08-21http.server: remove useless do .. end blockEmil Renner Berthing
2013-08-21http: factor out response moduleEmil Renner Berthing
2013-08-21io: add io.fromfd()Emil Renner Berthing
2013-08-19io: don't open files with O_NONBLOCKEmil Renner Berthing
2013-08-16Makefile.in: fix dependenciesEmil Renner Berthing
2013-08-03io: fix file:close() and file:__gc() blockingEmil Renner Berthing
2013-06-08set EV_SIGNAL_ENABLE and EV_CHILD_ENABLEEmil Renner Berthing
to prepare for upcoming signal library and reap child processes even when EV_CHILD_ENABLE is not set
2013-06-08http.client: addedEmil Renner Berthing
2013-06-08io: return stream, pid from io.popen()Emil Renner Berthing
2013-06-08io: fix memory leak on error in io.popen()Emil Renner Berthing
2013-06-08lem: use reguler ints for queue indexesEmil Renner Berthing
2013-06-08queue: add blocking multiple producer/consumer queueEmil Renner Berthing
2013-06-08fix compilation with EV_MULTIPLICITY setEmil Renner Berthing
2013-02-06parsers: fix stack overflowEmil Renner Berthing
2013-02-06io: fix empty string skipping codeEmil Renner Berthing
2013-02-01io: skip empty strings in write methodsEmil Renner Berthing
2013-02-01README: refer to the exampleEmil Renner Berthing
2013-02-01README: add chat server exampleEmil Renner Berthing
2013-01-31io: flush file input buffer on seekEmil Renner Berthing
2013-01-30http.server: smarter res:add()Emil Renner Berthing
2013-01-30io: add io.streamfile()Emil Renner Berthing
2013-01-30io: rework io.popen to use posix_spawn()Emil Renner Berthing
..and accept 'rw' flag to make reading _and_ writing to the process' stdin and stdout possible.
2013-01-29io: handle standard streams betterEmil Renner Berthing
Bash gets confused by non-blocking stdin, so set standard streams to non-blocking on __gc. FreeBSD errors when trying to set stdout non-blocking when it is redirected to /dev/null. So just silently ignore such errors.
2013-01-29io: implement io.lines() and lines() methodsEmil Renner Berthing
2013-01-29io: fix filedescriptor leak on FreeBSD/OSXEmil Renner Berthing
2013-01-28io: don't try to emulate TCP_CORK with TCP_NOPUSHEmil Renner Berthing
OSX and some versions FreeBSD doesn't send data immediately after unsetting TCP_NOPUSH. On OSX if you set TCP_NOPUSH, write data and then unset TCP_NOPUSH you'll get a 2 second delay before the last data is sent. Unfortunately I've found no reliable work-around.
2013-01-27http.server: add close() methodEmil Renner Berthing
2013-01-27io: set FD_CLOEXEC on all new filedescriptorsEmil Renner Berthing
2013-01-27io: add stream:getpeer()Emil Renner Berthing
2013-01-27io: ignore protocol errors on acceptEmil Renner Berthing
2013-01-27io: try syscalls again on EINTREmil Renner Berthing
2013-01-27io: make accept() close fd after watch is stoppedEmil Renner Berthing
2013-01-26io: server cleanupEmil Renner Berthing
2013-01-26io: don't do reverse dns lookup on connect/listenEmil Renner Berthing
This basically reverts commit 62c631fd7d5d5c66694af9266688851ac442508a
2013-01-26repl: add missing line separatorEmil Renner Berthing