Ticket #5132 enhancement new
Opened 2 years ago
twisted.web.template.flatten should accept a cancellation function
| Reported by: | amberite | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web | Keywords: | |
| Cc: | jknight | Branch: | |
| Author: | Launchpad Bug: |
Description
Since flatten calls request.write, if the request has already finished, e.g., user has disconnected, then flatten will raise an exception.
It would be useful if flatten accepted a cancellation function as part of its args; request.notifyFinish could then be used to trigger cancellation of the Deferred returned by flatten.
Change History
Note: See
TracTickets for help on using
tickets.
