mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 02:25:40 +08:00
Few more changes
This commit is contained in:
parent
cc0fd518bd
commit
b94e1fc01f
@ -550,7 +550,6 @@ static int h_maxconn(int argc, unsigned char **argv){
|
|||||||
if(!conf.maxchild) {
|
if(!conf.maxchild) {
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
conf.backlog = 1 + (conf.maxchild>>3);
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
{
|
{
|
||||||
struct rlimit rl;
|
struct rlimit rl;
|
||||||
@ -568,7 +567,7 @@ static int h_maxconn(int argc, unsigned char **argv){
|
|||||||
|
|
||||||
static int h_backlog(int argc, unsigned char **argv){
|
static int h_backlog(int argc, unsigned char **argv){
|
||||||
conf.backlog = atoi((char *)argv[1]);
|
conf.backlog = atoi((char *)argv[1]);
|
||||||
if(!conf.backlog) {
|
if(conf.maxchild < 0) {
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -1618,10 +1617,10 @@ struct commands commandhandlers[]={
|
|||||||
{commandhandlers+62, "noforce", h_noforce, 1, 1},
|
{commandhandlers+62, "noforce", h_noforce, 1, 1},
|
||||||
{commandhandlers+63, "parentretries", h_parentretries, 2, 2},
|
{commandhandlers+63, "parentretries", h_parentretries, 2, 2},
|
||||||
{commandhandlers+64, "auto", h_proxy, 1, 0},
|
{commandhandlers+64, "auto", h_proxy, 1, 0},
|
||||||
|
{commandhandlers+65, "backlog", h_backlog, 2, 2},
|
||||||
#ifndef NORADIUS
|
#ifndef NORADIUS
|
||||||
{commandhandlers+65, "radius", h_radius, 3, 0},
|
{commandhandlers+66, "radius", h_radius, 3, 0},
|
||||||
#endif
|
#endif
|
||||||
{commandhandlers+66, "backlog", h_backlog, 2, 2},
|
|
||||||
{specificcommands, "", h_noop, 1, 0}
|
{specificcommands, "", h_noop, 1, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1865,7 +1864,7 @@ void freeconf(struct extparam *confp){
|
|||||||
*SAFAMILY(&confp->intsa) = AF_INET;
|
*SAFAMILY(&confp->intsa) = AF_INET;
|
||||||
*SAFAMILY(&confp->extsa) = AF_INET;
|
*SAFAMILY(&confp->extsa) = AF_INET;
|
||||||
confp->maxchild = 100;
|
confp->maxchild = 100;
|
||||||
confp->backlog = 13;
|
confp->backlog = 0;
|
||||||
resolvfunc = NULL;
|
resolvfunc = NULL;
|
||||||
numservers = 0;
|
numservers = 0;
|
||||||
acl = confp->acl;
|
acl = confp->acl;
|
||||||
|
Loading…
Reference in New Issue
Block a user