Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
When using the debug build of python, assserts raises en freeze pyfcgi telling a decref is run on a thing with visit count == 0.... |
||
|---|---|---|
| include | ||
| src | ||
| tests | ||
| AUTHORS | ||
| autogen.sh | ||
| ChangeLog | ||
| configure.ac | ||
| COPYING | ||
| Doxyfile | ||
| foo.py | ||
| foo_pep333.py | ||
| includes_python3.7m.patch | ||
| Makefile.am | ||
| NEWS | ||
| README | ||
Patch python3 headers :
-----------------------
# cd /usr/include/python3.7m/
# patch -p1 < PATH_TO/includes_python3.7m.patch
Building & running pyfcgi :
---------------------------
$ ./autogen.sh
$ ./configure
$ make
$ spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi -S -e foo -E entrypoint -A
or
$ spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi -S -e foo_pep333 -E entrypoint
logging to file example :
-------------------------
-L '/tmp/foo.log;0xff;{datetime} {msg} {ident}'
Debugging :
-----------
$ ./configure PYTHON_CONFIG_PATH=/usr/bin/python3dm-config --enable-debug
$ make clean && make
$ valgrind --log-file=/tmp/val.log --trace-children=yes spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi -S -e foo_pep333 -E entrypoint -L '/tmp/foo.log;0xff;{datetime} {msg} {ident}'