Yann Weber
5c42fde3a4
Add ipv6 parse function tests
vor 5 Jahren
Yann Weber
e3477561ee
Write some tests for monitor URL parsing functions + bugfixes
vor 5 Jahren
Yann Weber
23ca05c04a
Starts UDP stats/status server implementation
vor 5 Jahren
Yann Weber
4daea42c44
Replacing old sysV sem by new POSIX solves #25
Creating new files to handle IPC stuffs : include/ipc.h src/ipc.c
vor 5 Jahren
Yann Weber
6913e228b8
Deleted old TODO
vor 5 Jahren
Yann Weber
fe56265ecd
Enhancement in timeout logging
Now logging a python traceback
vor 5 Jahren
Yann Weber
47a4e99e5b
Idle timeout counter updated value
7 seems better than 5.
vor 5 Jahren
Yann Weber
710ab8281c
Pool handling enhancement + bugfix in worker sighandling
The responder_loop handle better child creation & deletion. A conf struct
member indicates the number of seconds the pool have to be idle before deleting
a worker.
In a same way, the pool has to be busy for at least 1s before a new
process can be added (the -f flag indicate if the counter has to be reseted
when a new process is created, allowing spawn burst).
The spawn() function call sigaction 2 times for SIGINT & SIGTERM in order
to catch both.
vor 5 Jahren
Yann Weber
5466d9c575
Modification of workers making them always exist busy
Adds a global flag for worker indicating their status (add checks for
each semaphore change)
The pool handler will no longer have to decrease the semaphore value when
a child exit.
vor 5 Jahren
Yann Weber
5ad51d95fb
Add two options + status2str function
Add a -t --timeout and a -f --fast-spawn option for further commit
vor 5 Jahren
Yann Weber
7411301254
Logger ident allignement
vor 5 Jahren
Yann Weber
bcbbb99770
Add timeout & watchdog for pool & workers
vor 5 Jahren
Yann Weber
7c81ca411d
Add 120s siege benchmarks
vor 5 Jahren
Yann Weber
1456e35e96
Bugfix foo_pep333.py for uwsgi
uwsgi do not handle str, only bytes.
vor 5 Jahren
Yann Weber
7b22e9278c
Add a --verbose option
Add --verbose -v option to log on stderr
vor 5 Jahren
Yann Weber
7004f544e4
Add a todo + some commented debug lines + foo_pep333.py enhancement
vor 5 Jahren
Yann Weber
d3c9e2de42
Add sys.stdout & sys.stderr logging for pep333 worker
vor 5 Jahren
Yann Weber
0506b7824e
Debugging libpyfcgi.IoIn.read()
A '\0' need to be added to read string if read exactly the expected ammount of
bytes.
vor 5 Jahren
Yann Weber
7c1bcc2fcc
Debug in libpyfcgi.IoIn.read() method
read buffer was dropped
vor 5 Jahren
Yann Weber
512580c924
Implement partial support for wsgi.* environ
The url_scheme is static to "http" for the moment...
vor 5 Jahren
Yann Weber
ccb4234906
Now log_expt() logs a traceback
vor 5 Jahren
Yann Weber
cc0af1abb2
Bugfix in PEP333 worker when application trigger an exception
vor 5 Jahren
Yann Weber
81a8bb752e
Add support for virtualenv & site packages
Note : segfault on virtualenv tests...
vor 5 Jahren
Yann Weber
11df1455cf
Add signal handling and clean exiting
vor 5 Jahren
Yann Weber
9e413450a9
Bugfix in logger ident update + deleted debug logging
vor 5 Jahren
Yann Weber
28231c3d56
Logger enhancement + deleted unused warning in pyworker.c
vor 5 Jahren
Yann Weber
de7269f833
Deleted loglines, updated README + add check on FCGX_PutStr calls
vor 5 Jahren
Yann Weber
18a561a7ef
Add some decref + update README adding debugging notes
When using the debug build of python, assserts raises en freeze pyfcgi telling
a decref is run on a thing with visit count == 0....
vor 5 Jahren
Yann Weber
a2f0e17e98
Updated README
vor 5 Jahren
Yann Weber
a64e79e0c3
Updated README
vor 5 Jahren
Yann Weber
0c527fc2dc
1st fonctionnal implementation of both python<->C IPC
vor 5 Jahren
Yann Weber
90100e6a88
Small bugfix in logs + add log in conf
vor 5 Jahren
Yann Weber
fa88c2fc9a
Deleted lib dir + autoconf enhancement
vor 5 Jahren
Yann Weber
6a93f8042f
Start implementing pep333 application support
vor 5 Jahren
Yann Weber
c464ef3380
Add a TODO for bugfix
When suffix is used in logline format a "\n" is missing...
vor 5 Jahren
Yann Weber
686e6ecf2e
Added logger spec parser for CLI args
vor 5 Jahren
Yann Weber
c83d63c8f2
Add python version with -v option
vor 5 Jahren
Yann Weber
3a9238e7a1
Add pyutils.h/c and a check for import when parsing arguments
vor 5 Jahren
Yann Weber
76af007c69
Code cleaning & better worker exit status detection
And better handling of entrypoint import failure...
vor 5 Jahren
Yann Weber
6e10734217
updated README
vor 5 Jahren
Yann Weber
dcc8a7a622
Using global configuration variable instead of function arguments
vor 5 Jahren
Yann Weber
5c3202dbf8
Bugfix in version declaration
vor 5 Jahren
Yann Weber
9906803b42
Started arg parser implementation
vor 5 Jahren
Yann Weber
45d2c67f1a
Updated config.h.in & configure.ac files
vor 5 Jahren
Yann Weber
9eb5f1f42a
Using internal logger instead of syslog
vor 5 Jahren
Yann Weber
d2e7517348
Bugfix on logger with ident field etc
vor 5 Jahren
Yann Weber
1d4a84b8c7
Add small test on a logline + '\n' at logline end
vor 5 Jahren
Yann Weber
5e81964e0f
Updated log function, add a format_message function, debuging etc.
Implement the set_ident function (wich update the internal preffix & suffix
representations)
vor 5 Jahren
Yann Weber
cba3553bbc
Various logger enhancement
vor 5 Jahren
Yann Weber
a8e9e8cdec
Add a default behavior to logger_format_add function + tests
vor 5 Jahren