Fix some long standing issues in the WSGI layer:
- stop handling a request early when the client disconnected (fix #3043) - don't write to the client if the file descriptor is already closed (fix #1183)
Authored by: cboos 2009-04-08
Parent: [r8079]
Child: [r8081]