Changelog [20130917]
- the 'pty' client is now blocking (safer approach)
- removed strtok() usage (substituted by a new uwsgi api function on top of strtok_r() )
- fixed --pty-exec (Credits: C Anthony Risinger)
- listen_queue/somaxconn linux check is now done even for UNIX sockets
This is a new management way in addition to UNIX signals. As we have no more free signals to use (and generally dealing with signals and pidfiles is not very funny), all of the new management features of uWSGI will be based on the master fifo.
Docs are already available: :doc:`MasterFIFO`
Credits: Matthijs Kooijman
a new hook, named 'asap' has been added. It will be run soon after the options are parsed.
Check: :doc:`Hooks`
TCC is an embeddable c compilers. It includes a shared library (libtcc) you can use to compile strings of c code on the fly.
The libtcc uWSGI plugins allows compiling strings of c to process symbols. CUrrently the "tcc" hook engine has been implemented:
[uwsgi]
hook-asap = tcc:mkdir("/var/run/sockets");printf("directory created\n");
hook-as-user = tcc:printf("i am process with pid %d\n", getpid());
hook-post-app = tcc:if (getenv("DESTROY_THE_WORLD")) exit(1);
http-socket = /var/run/sockets/foobar.sock
While work on Linux containers/namespaces continues to improve we have added this special router/gateway allowing dynamic allocation of pseodoterminals in uWSGI instances. To access the sockets created by the forkptyrouter you can use the --pty-connect option exposed by the 'pty' plugin.
Documention is being worked on.
The %[ magic var has been added, it allows you to define ANSI sequences in your logs.
If you like coloured logs:
log-encoder = format %[[33m${msgnl}%[[0m
You can now attach log encoders to specific log routes:
[uwsgi]
logger = stderr file:/dev/tty
log-route = stderr ubuntu
log-route = stderr clock
print = %[[34mHELLO%[[0m
; add an encoder to the 'stderr' logger
log-encoder = format:stderr %[[33m${msgnl}%[[0m
http-socket = :9090
Credits: Matthijs Kooijman
This is like --vassal-inherit but the parsing will be "immediate" (so you can use placeholders)
The old approach for the heartbeat Emperor subsystem was asking for "gentle" reload to bad vassals.
Now vassals not sending heartbeat (after being registered with the heartbeat subsystem) are killed with -9
The result of this patch will be more robust bad vassals management
Author: INADA Naoki
You can now send loglines to the stdin of an external command:
req-logger = pipe:/usr/local/bin/mylogger
you can directly send logs to a file descriptors:
req-logger = fd:17
uWSGI 1.9.17 has been released on Semptember 22th 2013
You can download it from: