mirror of
https://github.com/graygnuorg/pound.git
synced 2026-10-25 10:19:36 +03:00
* configure.ac: Check for ranlib. * doc/poundctl.8: Rewrite. * src/Makefile.am (libpound.a): New non-installable library. * src/config.c: Move memory management functions to mem.c (sess_type_to_str): New function. (listener_parse_xhttp): Set an integer verb class in the range 0-4 (listener_alloc): Set verb class 0 (parse_control_global): New function. Define a special listener/ service/backend for handling control requests. * src/extern.h (ctrl_name,control_sock): Remove. * src/http.c (do_http): Parse HTTP request line into method, uri and HTTP version. Handle control requests (backend type BE_CONTROL) separately. * src/json.c: New file. * src/json.h: New file. * src/mem.c: New file. * src/pound.c (ctrl_name,control_sock): Remove. (server): Don't start separate thr_control thread. Flush cleanup queue before exiting. * src/pound.h: HTTP method definitions. (BE_CONTROL): New backend type. (LISTENER): Change type of verb to int - a verb class number. (thr_control): Remove. (control_reply,pound_atexit,unlink_file): New proto. * src/poundctl.c: Rewrite from scratch. * src/svc.c: Rewrite control request processing from scratch.