mirror of
https://github.com/jamesroberts/fastwsgi.git
synced 2026-01-06 06:09:47 -06:00
* Fix settings REMOTE_ADDR, SERVER_NAME, SERVER_PORT * Improved usage of wsgi_input object (reduced number of CPython calls) * Fix response for http HEAD request * Fix loglevel setting for some cases * Added the possibility to set a limit of Content-Length (HTTP request) Default limit = 999999999 * Added support chunked HTTP requests (header Transfer-Encoding removed) * Total code cleanup * Reuse preallocated buffer into read_cb function * Added a Python hack to directly write bytes to the io.BytesIO stream * Added support Expect: 100-continue * Replace INLINE specifier to static * Fix build server from Makefile (using local sources of libuv)
24 lines
512 B
Makefile
24 lines
512 B
Makefile
|
|
.PHONY: all clean
|
|
|
|
all: libuv.a server.o
|
|
|
|
libuv.a:
|
|
cd libuv && sh autogen.sh
|
|
cd libuv && ./configure
|
|
cd libuv && $(MAKE)
|
|
|
|
server.o: fastwsgi/server.c
|
|
mkdir -p bin
|
|
gcc -o bin/server -O3 \
|
|
fastwsgi/request.c fastwsgi/server.c fastwsgi/constants.c fastwsgi/start_response.c \
|
|
fastwsgi/logx.c fastwsgi/common.c fastwsgi/pyhacks.c \
|
|
-Illhttp/include llhttp/src/*.c \
|
|
-Ilibuv/include -Ilibuv/src -Llibuv/.libs -l:libuv.a \
|
|
-I/usr/include/python3.8 -lpython3.8 \
|
|
-lpthread -ldl
|
|
|
|
|
|
clean:
|
|
rm -rf bin
|