Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #311 (defect)

Opened 3 years ago

Last modified 3 years ago

Needed: filter method which runs after the response is completely written (or aborted)

Status: closed (fixed)

Reported by: fumanchu Assigned to: fumanchu
Priority: high Milestone: 2.2-beta
Component: CherryPy code Keywords: filter
Cc:

Ideally, onEndResource would do this, but current implementation doesn't do that if you use yield. This is confusing to filter authors.

One additional implementation problem will be that, since the CP core offers content via a generator, it's hard to clean up if the conversation is simply aborted (as opposed to terminating normally).

Change History

11/25/05 12:40:41: Modified by fumanchu

  • owner changed from rdelon to fumanchu.
  • priority changed from normal to high.
  • status changed from new to assigned.

11/26/05 16:23:25: Modified by fumanchu

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in [838]. New 'onEndRequest' filter method. HTTP SERVERS SHOULD NOW CALL request.close() when they are done writing out.

11/28/05 16:37:09: Modified by fumanchu

Better fix in [851].

Hosted by WebFaction

Log in as guest/cpguest to create tickets