Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore functionality of upload-progress for HTTP2 #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

allanjude
Copy link

The upload-progress module was only getting notified of the first block of uploaded data, because r->read_event_handler was being reset by ngx_http_v2_read_request_body() and
ngx_http_v2_process_request_body()

The patch detects that situation, updates module_ctx to call the new function, then reinserts itself as the read_event_handler so we continue to be notified about uploaded data.

Introduced in nginx/nginx@67d160b

Sponsored-by: ScaleEngine Inc.

The upload-progress module was only getting notified of the first
block of uploaded data, because r->read_event_handler was being
reset by ngx_http_v2_read_request_body() and
ngx_http_v2_process_request_body()

The patch detects that situation, updates module_ctx to call the
new function, then reinserts itself as the read_event_handler so
we continue to be notified about uploaded data.

Introduced in nginx/nginx@67d160b

Sponsored-by:	ScaleEngine Inc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant