-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stream: Allow sending data in the preread phase
There are cases when some interactions should happen between the client and the server before a successful preread. This patch enables sending data to the client in the preread phase. To avoid possible conflict between the preread callback and filtering callbacks, the data sent bypasses `js_body_filter`, but not other filters, if any. This patch introduces a new field in ngx_stream_js_ctx_t named `preread` to indicate if the session is now in the preread phase.
- Loading branch information
1 parent
dc4232e
commit e090929
Showing
1 changed file
with
53 additions
and
4 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