masterzen / nginx-upload-progress-module

Nginx module implementing an upload progress system, that monitors RFC1867 POST uploads as they are transmitted to upstream servers.
http://wiki.codemongers.com/NginxHttpUploadProgressModule
Other
432 stars 101 forks source link

Restore functionality of upload-progress for HTTP2 #57

Open allanjude opened 1 year ago

allanjude commented 1 year ago

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@67d160bf25e02ba6679bb6c3b9cbdfeb29b759de

Sponsored-by: ScaleEngine Inc.