-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Before, the application BiFunction passed to `request.response(BiFunction)` was called at the "headers" event. Eventually, a `Publisher<T>` was returned to the application that could subscribe to it, triggering demand to the internal `Publisher<Chunk>`, which is triggering the read of `Chunk`s from the `Content.Source`. At the same time, the "content source event" may be delivered, triggering also the read of `Chunk`s from the `Content.Source`. The solution was to delay the call of the application BiFunction at the "content source event". In this way, there is only one trigger to read `Chunk`s from the `Content.Source`: when the application demands on the `Publisher<T>` returned to the application. Signed-off-by: Simone Bordet <[email protected]>
- Loading branch information
Showing
6 changed files
with
111 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters