Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
Find a file
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....
2019-08-03 17:51:19 +02:00
include 1st fonctionnal implementation of both python<->C IPC 2019-08-03 17:16:26 +02:00
src Add some decref + update README adding debugging notes 2019-08-03 17:51:19 +02:00
tests Start implementing pep333 application support 2019-07-28 13:52:54 +02:00
AUTHORS Add missing am files 2019-07-03 17:12:54 +02:00
autogen.sh Start implementing pep333 application support 2019-07-28 13:52:54 +02:00
ChangeLog Add missing am files 2019-07-03 17:12:54 +02:00
configure.ac Deleted lib dir + autoconf enhancement 2019-08-03 17:13:44 +02:00
COPYING Add autotools & checks 2019-07-03 17:11:01 +02:00
Doxyfile Start implementing pep333 application support 2019-07-28 13:52:54 +02:00
foo.py 1st fonctionnal implementation of both python<->C IPC 2019-08-03 17:16:26 +02:00
foo_pep333.py 1st fonctionnal implementation of both python<->C IPC 2019-08-03 17:16:26 +02:00
includes_python3.7m.patch Initial commit 2019-06-30 08:19:03 +02:00
Makefile.am Deleted lib dir + autoconf enhancement 2019-08-03 17:13:44 +02:00
NEWS Add missing am files 2019-07-03 17:12:54 +02:00
README Add some decref + update README adding debugging notes 2019-08-03 17:51:19 +02:00

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}'