Skip to content

Commit 7aa110a

Browse files
committed
ngx-build: applied the patch to fix a new regression in nginx 1.7.7's ngx_gzip and ngx_gunzip modules that could lead to request hang when the downstream is slow to write to.
1 parent fbef65c commit 7aa110a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ngx-build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,12 @@ sub apply_patches {
413413
shell("patch -p1 < $root/../ngx_openresty/patches/nginx-$version-hash_overflow.patch");
414414
chdir ".." or die "cannot switch to ..\n";
415415
}
416+
417+
if ($ver ge '001007004') {
418+
chdir "nginx-$version" or die "cannot switch to nginx-$version\n";
419+
shell("patch -p1 < $root/../ngx_openresty/patches/nginx-$version-gzip_gunzip_flush.patch");
420+
chdir ".." or die "cannot switch to ..\n";
421+
}
416422
}
417423

418424
sub usage {

0 commit comments

Comments
 (0)