Commit 36516049 authored by DaVieS's avatar DaVieS

possible_fix

parent b3948ec3
......@@ -224,6 +224,8 @@ class ASPFConnector
/** HANDLE **/
int Handle(std::string func)
{
bool have_connect;
Set("FUNC",func);
if(debug)
......@@ -244,17 +246,23 @@ class ASPFConnector
Set("METHOD","");
}
for(int i=0;i<=40;i++)
have_connect = false;
for(int i=0;i<=10;i++)
{
int cret = Communicate(data);
if(cret)
{
have_connect = true;
break;
}
sleep(1);
}
if(!have_connect)
{
return SMFIS_TEMPFAIL;
}
if(rdata["ACTION"] == "REJECT")
{
......
......@@ -224,6 +224,8 @@ class ASPFConnector
/** HANDLE **/
int Handle(std::string func)
{
bool have_connect;
Set("FUNC",func);
if(debug)
......@@ -244,17 +246,23 @@ class ASPFConnector
Set("METHOD","");
}
for(int i=0;i<=40;i++)
have_connect = false;
for(int i=0;i<=10;i++)
{
int cret = Communicate(data);
if(cret)
{
have_connect = true;
break;
}
sleep(1);
}
if(!have_connect)
{
return SMFIS_TEMPFAIL;
}
if(rdata["ACTION"] == "REJECT")
{
......
......@@ -224,6 +224,8 @@ class ASPFConnector
/** HANDLE **/
int Handle(std::string func)
{
bool have_connect;
Set("FUNC",func);
if(debug)
......@@ -244,17 +246,23 @@ class ASPFConnector
Set("METHOD","");
}
for(int i=0;i<=40;i++)
have_connect = false;
for(int i=0;i<=10;i++)
{
int cret = Communicate(data);
if(cret)
{
have_connect = true;
break;
}
sleep(1);
}
if(!have_connect)
{
return SMFIS_TEMPFAIL;
}
if(rdata["ACTION"] == "REJECT")
{
......
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