2010/11/25, Graham Dumpleton <[email protected]>: > That said, if you need to catch it to stop some external thing which > is running,
Yes, that's exactly why I'm asking: I have a process I'd like to kill. > then you should write your WSGI application to return a > generator which overrides the close() method so as to be notified when > request complete. This will be called for both when all data is sent, > and when client connection closed. If you need to behave differently > when client connection closed prematurely, then you would need to have > an internal progress flag to know. > > For details on using close() see: > > http://code.google.com/p/modwsgi/wiki/RegisteringCleanupCode This link seems very helpful, thanks a lot! -- DoubleF -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
