[Python-modules-team] Bug#581372: libapache2-mod-wsgi: backport 3.2 to lenny

anatoly techtonik at php.net
Wed May 12 14:40:16 UTC 2010


Package: libapache2-mod-wsgi
Version: 2.8-1~bpo50+1
Severity: normal

3.x version of modwsgi contains some fixes that I believe could help to increase overall stability of Trac, 
which occasionally fails to process requests while running under Apache 2 + mod_wsgi. Failed request in turn 
makes Bitten slaves stop. So, a backport is required to check if the problem persists for newer versions and to 
debug it properly.

Fixes that may alleviate the issue:

http://code.google.com/p/modwsgi/wiki/ChangesInVersion0300
6. Set timeout on socket connection between Apache server child process and daemon process earlier to catch any 
blocking problems in initial handshake between the processes. This will make code more tolerant of any 
unexpected issues with socket communications. 

3. When client closes connection and iterable returned from WSGI application being processed, now directly log 
message at debug level in log files, rather than raising a Python exception and with that being logged at error 
level as was previously the case.

For where write() being called a Python exception still has to be raised and whether that results in any message 
being logged depends on what the WSGI application does.

End result is that for normal case where LogLevel wouldn't be set to debug, the log file will not fill up with 
messages where client prematurely closes connection. 

11. If daemon process defined in virtual host which has its own error log, then associated stderr with that 
virtual hosts error log instead. This way any messages sent direct to stderr from C extension modules will end 
up in the virtual host error log that the daemon process is associated with, rather than the main error log. 


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libapache2-mod-wsgi depends on:
ii  apache2-mpm-prefork [apache2] 2.2.14-2   Apache HTTP Server - traditional n
ii  apache2.2-common              2.2.14-2   Apache HTTP Server common files
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  python                        2.5.2-3    An interactive high-level object-o

libapache2-mod-wsgi recommends no packages.

Versions of packages libapache2-mod-wsgi suggests:
pn  apache2-mpm-worker | apache2- <none>     (no description available)

-- no debconf information





More information about the Python-modules-team mailing list