mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 10:35:40 +08:00
allow larger request size in HTTP proxy
allow larger request size in HTTP proxy & correctly nullify request buffer
This commit is contained in:
parent
f287b94236
commit
252d481299
@ -239,7 +239,7 @@ void * proxychild(struct clientparam* param) {
|
|||||||
bufsize = BUFSIZE;
|
bufsize = BUFSIZE;
|
||||||
anonymous = param->srv->singlepacket;
|
anonymous = param->srv->singlepacket;
|
||||||
for(;;){
|
for(;;){
|
||||||
memset(buf, 0, BUFSIZE);
|
memset(buf, 0, bufsize);
|
||||||
inbuf = 0;
|
inbuf = 0;
|
||||||
|
|
||||||
|
|
||||||
@ -494,7 +494,7 @@ for(;;){
|
|||||||
}
|
}
|
||||||
inbuf += i;
|
inbuf += i;
|
||||||
if((bufsize - inbuf) < LINESIZE){
|
if((bufsize - inbuf) < LINESIZE){
|
||||||
if (bufsize > 20000){
|
if (bufsize > (LINESIZE * 16)){
|
||||||
RETURN (516);
|
RETURN (516);
|
||||||
}
|
}
|
||||||
if(!(newbuf = myrealloc(buf, bufsize + BUFSIZE))){RETURN (21);}
|
if(!(newbuf = myrealloc(buf, bufsize + BUFSIZE))){RETURN (21);}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#define VERSION "3proxy-0.8b-devel"
|
#define VERSION "3proxy-0.8b-devel"
|
||||||
#define BUILDDATE "150302205552"
|
#define BUILDDATE "150302210600"
|
||||||
|
Loading…
Reference in New Issue
Block a user