Tagged and release mod_wsgi-1.3.

0 views
Skip to first unread message

Graham Dumpleton

unread,
Nov 17, 2007, 5:53:57 AM11/17/07
to mod...@googlegroups.com
Version 1.3 of mod_wsgi has been released and available from:

http://code.google.com/p/modwsgi/downloads/list

This is a bug fix only release and contains a fix to eliminate, or at
least reduce, the impact of a deadlock situation where mod_wsgi daemon
processes were being used and a request with content greater than UNIX
socket buffer size, was directed at a WSGI application resource
handler which in turn returned a response, greater than UNIX socket
buffer size, without first consuming the request content.

This was found when investigating possible causes for the hanging
daemon processes recently discussed on the group. It is suspected that
this may not be the problem being seen by those sites, as those sites
were also seeing CPU usage maxing out.

It is possible that if the sites were under heavy load that the
successive retries by the Apache child process against the daemon
processes, and the fact that Apache may have needed to create
additional child process to meet demand of incoming requests as more
and more threads were consumed in doing retries, that load may have
increased, but wouldn't have expected to see this to any great degree,
and the daemon processes themselves wouldn't have been running
rampant.

For a bit more detail of the change in version 1.3 see:

http://code.google.com/p/modwsgi/wiki/ChangesInVersion0103

At the same time as this release, have also released 2.0c3. Version
2.0c3 includes this fix and some new code to try and detect deadlocks
on Python GIL and restart daemon process automatically. The full list
of cumulative changes in version 2.0c3 can be seen at:

http://code.google.com/p/modwsgi/wiki/ChangesInVersion0200

Note that neither of these versions changes anything related to
Windows versions of mod_wsgi, nor would you benefit from the changes
if using Apache 1.3. This is because daemon mode is only available on
UNIX and when using Apache 2.X.

Let me know if you see any new problems.

Thanks.

Graham

Bernd Zeimetz

unread,
Nov 17, 2007, 2:31:35 PM11/17/07
to mod...@googlegroups.com
Graham Dumpleton wrote:
> Version 1.3 of mod_wsgi has been released

uploaded to Debian/unstable.


> At the same time as this release, have also released 2.0c3.

uploaded to Debian/experimental.


Cheers,

Bernd

--
Bernd Zeimetz
<be...@bzed.de> <http://bzed.de/>

gert

unread,
Nov 17, 2007, 2:33:50 PM11/17/07
to modwsgi
Apache/2.2.4 (Ubuntu) mod_wsgi/2.0c3 Python/2.5.1

works perfectly for me, but significantly slower then c2 ? Node that i
do not know what i am talking about and the only benchmark i do is
look in firebug how much ms each request takes. So basically it could
be anything and i am only saying the number is getting bigger in
firebug that's all

gert

unread,
Nov 17, 2007, 3:31:05 PM11/17/07
to modwsgi
i forgot to mention i am using embedded mode so it is strange
performance would be different from c2. probably something non related
to mod_wsgi that causes some delay on my requests.

Graham Dumpleton

unread,
Nov 17, 2007, 3:57:48 PM11/17/07
to mod...@googlegroups.com
On 17/11/2007, Graham Dumpleton <graham.d...@gmail.com> wrote:
> Note that neither of these versions changes anything related to
> Windows versions of mod_wsgi, nor would you benefit from the changes
> if using Apache 1.3. This is because daemon mode is only available on
> UNIX and when using Apache 2.X.

Actually, this is a lie. Forgot that the changes added unlocking of
the Python GIL around where response output is pushed down to Apache.
Theoretically, this may help to improve concurrency when process being
hit by lots of requests, as not holding the Python GIL for operation
which could theoretically block for a bit if web client is slow. This
would affect both embedded and daemon mode.

So, rebuild for Windows and Apache 1.3 still worthwhile.

BTW, I high recommend an update to this version due to the possibility
that the problem fixed could be used as a form of denial of service
attack in older versions, locking up your daemon processes if someone
finds a URL which satisfies the requirements for triggering the
problem.

Graham

nstei...@gmail.com

unread,
Nov 18, 2007, 6:02:34 AM11/18/07
to modwsgi

Adal Chiriliuc

unread,
Nov 18, 2007, 8:52:34 AM11/18/07
to modwsgi

gert

unread,
Nov 18, 2007, 10:06:34 AM11/18/07
to modwsgi
works perfect on windows xp for me thanks.
Reply all
Reply to author
Forward
0 new messages