]> git.kaiwu.me - nginx.git/commit
Image filter: large image handling.
authorLanshun Zhou <zls.sogou@gmail.com>
Tue, 27 Aug 2013 16:19:07 +0000 (00:19 +0800)
committerLanshun Zhou <zls.sogou@gmail.com>
Tue, 27 Aug 2013 16:19:07 +0000 (00:19 +0800)
commitbe23dcb1a1d80742a95521939021e3adb9d9796b
tree13bd62f8bd4e3bdd6ec03765bd30f9953a0432ae
parent51f7761710fb797be1f3c401be2aa57b603ce45d
Image filter: large image handling.

If Content-Length header is not set, and the image size is larger than the
buffer size, client will hang until a timeout occurs.

Now NGX_HTTP_UNSUPPORTED_MEDIA_TYPE is returned immediately.

diff -r d1403de41631 -r 4fae04f332b4
src/http/modules/ngx_http_image_filter_module.c
src/http/modules/ngx_http_image_filter_module.c