[Python-modules-team] Bug#598143: IOError: failed to write data

Soeren Sonnenburg sonne at debian.org
Sun Sep 26 20:22:39 UTC 2010

Package: libapache2-mod-wsgi
Severity: grave
Tags: squeeze

I've just upgraded a web-server that uses apache / wsgi / django to
serve content, noticing that with this newer version of wsgi (version 3.x) operation becomes very unreliable: After just a few connects all further connections just hang (lsof -n -i lists them in close_wait state).

Trying to find a solution for that problem I found


which exactly matches what I observe (there is no nown solution it

It could be an interaction bug between django and wsgi as stated here

So I compiled+installed the lenny version of wsgi (2.5) on squeeze and
this problem is gone!

This makes me confident that this bug is in wsgi and not django.

(this happens with prefork and worker mpm, even with high values for

-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

More information about the Python-modules-team mailing list