Commit c6403011 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use the gzip_stack_buffer param throughout.

parent af87aa4c
...@@ -307,7 +307,7 @@ vfp_gunzip_bytes(struct sess *sp, struct http_conn *htc, size_t bytes) ...@@ -307,7 +307,7 @@ vfp_gunzip_bytes(struct sess *sp, struct http_conn *htc, size_t bytes)
struct storage *st; struct storage *st;
ssize_t l, w; ssize_t l, w;
int i = -100; int i = -100;
uint8_t ibuf[64*1024]; /* XXX size ? */ uint8_t ibuf[1024 * params->gzip_stack_buffer];
size_t dl; size_t dl;
const void *dp; const void *dp;
...@@ -406,7 +406,7 @@ vfp_gzip_bytes(struct sess *sp, struct http_conn *htc, size_t bytes) ...@@ -406,7 +406,7 @@ vfp_gzip_bytes(struct sess *sp, struct http_conn *htc, size_t bytes)
struct storage *st; struct storage *st;
ssize_t l, w; ssize_t l, w;
int i = -100; int i = -100;
uint8_t ibuf[64*1024]; /* XXX size ? */ uint8_t ibuf[1024 * params->gzip_stack_buffer];
size_t dl; size_t dl;
const void *dp; const void *dp;
......
...@@ -247,7 +247,7 @@ res_WriteGunzipObj(struct sess *sp) ...@@ -247,7 +247,7 @@ res_WriteGunzipObj(struct sess *sp)
struct vgz *vg; struct vgz *vg;
const void *dp; const void *dp;
char lenbuf[20]; char lenbuf[20];
char obuf[64*1024]; /* XXX: size? */ char obuf[1024 * params->gzip_stack_buffer];
size_t dl; size_t dl;
int i; int i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment