Project

General

Profile

Actions

Support #11332

open

Response Stream Lifetime with Continuations

Added by Aaron Wright almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/14/2023
Due date:
% Done:

0%

Estimated time:

Description

When handling a request for a large response, we are using continuations. Can we take a reference to the response output stream (i.e., response.out()) just once, at the beginning of handling the request and then reuse the reference until the request is done? Or do we need to use the response output stream passed into the request handler for each continuation?

The interface doesn't make it clear, given that a response, and thus a response output stream, is passed into each call of the request handler. My gut would say that we should use the response output stream passed in each time, because we don't control the lifetime of the stream, but is that accurate?

No data to display

Actions

Also available in: Atom PDF