The NetBSD Project

CVS log for pkgsrc/www/py-uwsgi/patches/patch-core_logging.c

[BACK] Up to [] / pkgsrc / www / py-uwsgi / patches

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jun 23 15:56:45 2017 UTC (17 months, 3 weeks ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-, HEAD
Changes since 1.2: +6 -3 lines
Diff to previous 1.2 (colored)

Avoid sys/user.h on NetBSD.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Nov 4 21:39:00 2016 UTC (2 years, 1 month ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.1: +10 -10 lines
Diff to previous 1.1 (colored)

py-uwsgi: update to 2.0.14

2.0.14 changes:
    backported gevent-early-monkey-patch (jianbin-wei)
    Fixed OpenBSD version check (Pavel Korovin)
    PSGI/Perl cache api fixes (Alexander Demenshin)
    Correctly decode PATH_INFo in router_rewrite plugin (Ben Hearsum)
    add uwsgi.accepting() for chain-reload + worker-override combo (enkore)
    fixed workers killing when in cheaper modes (shoham-stratoscale)
    added gi-safe option (nnnn20430)
    Implemented graceful reload for COROAE plugin (aleksey-mashanov)
    Added hp-fallback2, hp-fallback-qs (Felicity unixwitch)
    Added ipv4in and ipv6in routing rules (Felicity unixwitch)
    Fixed readline support in python3 when working interactively (Anthony Sottile)
    Implement touch-reloading for mules and spoolers (Alexandre Bonnetain)
    add request_start timestamp in stats (Ben Plotnick)
    Fixed double free in uwsgi_routing_func_rewrite (William Orr)
    Various mod_proxy_uwsgi fixes (Ya-Lin Huang)
    support for o-answerin PSGI (Anton Petrusevich)
    added php-constant option (аман еогиевки [gdamjan])
    added the stdio logger (аман еогиевки [gdamjan])
    spooler: fix reading inconsistent data (Pavel Patrin)
    Removed -WError from the build procedure (Riccardo Magliocchetti, suggested by Ian Denhardt)
    The usual amount of coverity-based fixes (Riccardo Magliocchetti)

    Fixed support for python 2.5 and python 2.6
    Fixed support for older glibc
    reverted EPOLLEXCLUSIVE patch, requires more investigation


    Fix compilation with GCC 6
    Remote rpc fixes (Darvame)
    Musl support! (Natanael Copa, Matt Dainty, Riccardo Magliocchetti)
    Create the spooler directory if it does not exist (Alexandre Bonnetain)
    Fix compilation on big endian linux (Riccardo Magliocchetti)
    A ton of cache fixes (Darvame)
    Make it easier to compile plugins on a different directory (Jakub Jirutka)
    Add wheel package machinery (Matt Robenolt)
    Use EPOLLEXCLUSIVE for reading, helps with the thundering herd problem (on linux 4.5+) (INADA Naoki)
    Fix apache 2.4 integration with unix sockets (Alexandre Rossi)
    Add HTTP/2 support to apache 2 proxy (Michael Fladischer, OGAWA Hirofumi)
    Fix apache mod proxy compilation with apache 2.4.20 (Mathieu Arnold)
    Default to clang as default compiler on MacOS X (Riccardo Magliocchetti)
    Added gi-close-stdin-on-eof (Roberto De Ioris)



    pcvarrouting action correctly returns NEXT on empty response
    uwsgiconfig: fix handling of empty keys in python3 (Simone Basso)
    plugins/alarm_speech: fix AppKit spelling to support case-sensitive filesystems (Andrew Janke)
    Fix inheriting INET address (INADA Naoki)
    core/xmlconf: correctly initialize libxml2 (Riccardo Magliocchetti)
    Pass LIBDIR to linker in python plugin (Borys Pierov)
    Platforms-related build fixes for pty, forkptyrouter and mono plugins (Jonas Smedegaard and Riccardo Magliocchetti)

New Features and Backports
The custom worker api

Finally you are able to override the uWSGI processing model to completely get control of it. This is very similar to what you can do in projects like gunicorn (and its integration with tornado or gevent). Obviously native plugins are still the best approach (they allow integration with uWSGI api and states), but in some case you may want to use uWSGI process management facilities and let your app do the rest of the work.

Currently only the python plugin supports verridingof workers, an aiohttp (asyncio) example module is available:

This option disables the wsgi.file_wrapper optimization of the WSGI standard. In some corner case this is the only trick to avoid errors.
Official PHP 7 support

PHP 7 is now officially supported in the php plugin.
uwsgi.spooler_get_task api (Credits: Alexandre Bonnetain)

This patch allows you to easily parse spooler files.

Check the example/test here:
f-hostname-match (Credits: Alexandre Bonnetain)

This options for config logic allows you to define options only when a regexp over the hostname matches:

if-hostname-match = ^prod
  threads = 20
endif =


    OSX 10.11 supports TCP_FASTOPEN
    fixed http-socket parser state after harakiri
    fixed threaded request logger
    fixed fastrouter subscriptions modifiers
    fixed alarm backlog


    fixed HTTPS router resource deallocation and fiel descriptors leak
    do not spit out ssl errors when errno is 0

New Features
The unix_signal hook

You can now remap UNIX signals to specific functions symbols



    [pypy] fixed misuse of ffi.string
    fixed detection for gcc 5 (jimfunk)
    fixed shared sockets for gateways
    [psgi] Changed abs to labs because offset is declared as a long (Peter H. Ezetta)
    add null terminator to uwsgi_get_dot_h() and uwsgi_config_py() (Jay Oster)
    fixed thread waiting during stop/restart (Kaiwen Xu)
    fixed chain reloading verbosity
    [python] fixed spooler job reference counting (Curtis Maloney)
    various static analysis improvements (Riccardo Magliocchetti)
    fixed sharedarea support for very big ranges
    fixed gzip transformation for zero-sized responses (Curtis Maloney)
    fixed management of https client certificate authentication (Vladimir Didenko)
    fixed OpenBSD build
    fixed TMPFILE permissions

New Features
The mem_collector thread

Evil memory monitors (like vil-reload-on-rss) are now asynchronously managed by a dedicated thread.

This solves the issue of runaway processes not catched by the master.
fixpathinfo routing action

This is another step in removing the need of the infamous uwsgi_modifier1 30 relic.

This routing action assumes the PATH_INFO cgi var has the SCRIPT_NAME part included.

This action allows you to set SCRIPT_NAME in nginx without bothering to rewrite the PATH_INFO (something nginx cannot afford)

; blindly assumes PATH_INFO is clobbered with SCRIPT_NAME
route-run = fixpathinfo:

uwsgi[sor] and time[micros] routing vars

This two new vars exposes the start of the current request (in micros) and the current time (again in micros)

route-run = log:request started at ${uwsgi[sor]}
route-run = log:current micros time is ${time[micros]}


This works like wait-for-fs/iface/file/dir

The spawn of the instance is suspended until the specified tcp/unix socket is ready.

You can use it to synchronize vassals spawn (like stopping a vassal until a postgresql server has been spawned)
wait_for hooks

All of the wait-for-* functions can now be used as a hook:

; wait for postgres soon after privileges drop
hook-as-user = wait_for_socket:

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 6 02:35:54 2015 UTC (3 years, 8 months ago) by rodent
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2

Fix build for OpenBSD and Bitrig (from sevan@'s report).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>