Re: [Web-SIG] Another WSGI gotcha to be aware of

2007-08-25 Thread Robert Brewer
Phillip J. Eby wrote: > At 11:45 PM 8/24/2007 -0700, Robert Brewer wrote: > >However, and here's the rub, if nextapp() raises an > >exception, **self.response is never bound**, and > >therefore we have no handle to the object we need > >to close. Note that this is not a middleware-only > >problem;

Re: [Web-SIG] Another WSGI gotcha to be aware of

2007-08-25 Thread Phillip J. Eby
At 11:45 PM 8/24/2007 -0700, Robert Brewer wrote: >However, and here's the rub, if nextapp() raises an >exception, **self.response is never bound**, and >therefore we have no handle to the object we need >to close. Note that this is not a middleware-only >problem; servers can run into this too. > >

Re: [Web-SIG] Another WSGI gotcha to be aware of

2007-08-25 Thread Graham Dumpleton
On 25/08/07, Robert Brewer <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > I just found another corner case in the WSGI spec > that I thought I'd share so you all can check your > WSGI components for similar problems. Basically, > it comes down to error handling. Here's a simple > example: > >