nginx-modules / ngx_cache_purge

nginx module which support to purge ngx_http_(fastcgi|proxy|scgi|uwsgi)_module cache backend
Other
209 stars 34 forks source link

Fix tests and segfaults #9

Closed fdintino closed 7 years ago

fdintino commented 7 years ago

There were problems with the tests that were causing invalid failures: several of the tests hadn't been changed to expect 412 status codes rather than 404 status codes (the change introduced in 1449591) and proxy3.t and proxy4.t had an incorrect root directive (unlike the other test files, root was /var/www/html, but there is no such file as /var/www/html/etc/passwd).

After fixing these tests, there were legitimate test failures that were the result of segmentation faults. The second commit fixes a segmentation fault in the implementation of partial key purges (which appears to never have worked) and the third commit fixes the segmentation fault that PR #8 unsuccessfully attempted to fix.