Open
Description
Imagine you have a route like the following.
@app.route("/foo", methods=["POST"])
@inlineCallbacks
def doStuff(self, request):
yield foo()
yield bar()
return {"message": "success"}
And then a client calls POST /foo
and disconnects right after Klein finishes processing foo()
. Currently, bar()
would get cancelled. I understand that the socket has closed so that the {"message": "success"}
cannot be written back but it would be nice if the Deferred bar()
was executed. Is there some use case that I'm failing to understand here?
Or to put it differently, I believe we should stop executing the .cancel()
on the Deferred if the request finishes at
Line 210 in 8964da7
Metadata
Assignees
Labels
No labels
Activity