54 Commits (66bd6b22a2bcf1b1c60534330fe8d1d2c787932f)

Author SHA1 Message Date
Stefan Bühler 66bd6b22a2 track event "names" for debugging
8 years ago
Stefan Bühler 17a5168793 [core] convert all assert() to LI_FORCE_ASSERT(), and support writing backtraces on fatal errors with libunwind
9 years ago
Stefan Bühler 64cabac477 [core] fix connection timeout handling
10 years ago
Stefan Bühler abdb238f21 [core] fix half cleaned connection objects
10 years ago
Stefan Bühler 11b4bdd8c5 replace unneeded ev_/EV_ references
10 years ago
Stefan Bühler a937bd437a fix missing li prefixes
10 years ago
Stefan Bühler 72ec9a432f [throttle] rewrite
10 years ago
Stefan Bühler cfd8955008 [common] implement libev wrapper
10 years ago
Stefan Bühler ff69160c34 [core] Use streams
10 years ago
Stefan Bühler 0d85a068c8 [lua] add per lua_State lock
10 years ago
Stefan Bühler 77f786ed18 [log] remove different timestamp format handling (one is enough), separate log context (liLogMap) from virtualrequest
11 years ago
Stefan Bühler 3277edabe6 connection.c: optimize buffer usage - don't keep too many unused buffers around
11 years ago
Thomas Porzelt bd15bb8f82 [core] fix for previous commit. gc requency was set to 10s not 5min
11 years ago
Thomas Porzelt ab313d20c2 [core] change connection garbage collector algorithm to free all unused connections up to the maximum of active connections during the last 5 minutes
11 years ago
Stefan Bühler 823b9d13c2 [core]: wait for connections before shutdown
13 years ago
Thomas Porzelt a3b7ce74af [core] Rework throttle-pool handling to be thread-safe in creation/destruction aswell as more accurate and fair throttling
13 years ago
Stefan Bühler be65208143 waitqueue: modify callback
13 years ago
Stefan Bühler 7d938e48e3 [log] Fix prepare handler
13 years ago
Stefan Bühler 79d98f5991 [core] Use liJobQueue for vrequest job queue
13 years ago
Thomas Porzelt 9c63e60cb7 [core] Add workers.cpu_affinity setup action
13 years ago
Stefan Bühler 77ad119f66 [lua]: add subrequests
13 years ago
Stefan Bühler 1c3d3c287f [core]: add tasklet pools to workers and use them for stat-cache
13 years ago
Stefan Bühler b87e74d151 Optimize IO handling to safe syscalls; run vrequest state machines twice before looking for new io events
13 years ago
Stefan Bühler b876f8401d [core]: rework connection/vrequest structs; add liConInfo
13 years ago
Thomas Porzelt c8663ffda9 [core] Allow disabling of stat cache through stat_cache.ttl 0;
13 years ago
Thomas Porzelt e2faced3dd [core] Fix worker timestamp cache initialization resulting in segfault when a module adds a new formatter (e.g. mod_accesslog)
13 years ago
Stefan Bühler e00febcd40 Fix vrequest-ref api
13 years ago
Thomas Porzelt bf632326a7 [core] Update and start (if necessary) io timeout in li_worker_run() fixing first worker ignoring io.timeout from config
13 years ago
Stefan Bühler b144242a07 Fix timestamp handling a little bit
13 years ago
Stefan Bühler a8efcfcc0e modify plugin api to include worker context for action/option parsing; add per-worker callback for stop_worker
13 years ago
Stefan Bühler d0f6484e7c Move sched_[gs]etaffinity to plugin_core
13 years ago
Thomas Porzelt 9bd5c39550 [core] Add vr->ts_started struct member, representing the ev_tstamp when the vr has been started
13 years ago
Thomas Porzelt 8716087728 [core] Rename con->ts to con->ts_started
13 years ago
Stefan Bühler 8f69c6bc8d Reduce buffer allocs for network read
13 years ago
Thomas Porzelt 6bf284b754 [core] Record peak values of worker stats
13 years ago
Thomas Porzelt 175db515a6 [core] Change behaviour of connection garbage collector in worker a bit, only free if below threshold for more than 5 minutes
13 years ago
Thomas Porzelt 53096333f1 [core] Fix connection garbage collector
13 years ago
Stefan Bühler d9228f3ef0 Add per worker lua_State
13 years ago
Stefan Bühler a151eeac2f Prefix li_ cleanup, verified with nm -g --defined-only
14 years ago
Stefan Bühler a14a709237 Add max-connections check, set to max-fds/4
14 years ago
Stefan Bühler 7cf91dc9ad Fix previous commit (missing plugin_core include)
14 years ago
Stefan Bühler 856a841820 Move io-timeout message into log_request_handling
14 years ago
Stefan Bühler 037c78e8ed Fix closing sockets on shutdown
14 years ago
Stefan Bühler 48721307b3 Remove req/s debug output, put docroot debug in request-handling option
14 years ago
Stefan Bühler 7133bae151 Fix vrequest state machine w. waiting actions
14 years ago
Stefan Bühler f030824550 Fix server address (do not use the listen address)
14 years ago
Stefan Bühler a663088a77 Add custom server socket callbacks (for ssl modules)
14 years ago
Stefan Bühler 56ff7ca32a angel/lighty now synchronize the server state
14 years ago
Stefan Bühler f221bac60e Fix handling closing sockets (read buffer until EOF, error or timeout)
14 years ago
Thomas Porzelt 8a13426774 [core] Stop stat cache waitqueue in sigint/worker stop
14 years ago