I use cfengine 2.2.7 at FreeBSD 6.3 Stable.
I try it will be connected to a "bad" host(without cfengine):

cfrun 91.198.36.12 -d20

 and I have the following:
...skipped...
IPV4 address
sockaddr_ntop(91.198.36.12)
Connect to 91.198.36.12 = 91.198.36.12 on port 5308
cfrun:mail.midland.com.ua: Time out of process 0
Terminated


Problem in the "ip.c":
         if (response2)
            {
            freeaddrinfo(response2);
            }
         }


      signal(SIGALRM,(void *)TimeOut);

      alarm(CF_TIMEOUT); -------------------------------------------------->!!!!

      if ((connect(CONN->sd,ap->ai_addr,ap->ai_addrlen)) >= 0)------------->!!!!
         {
         connected = true;
         alarm(0);
         signal(SIGALRM,SIG_DFL);
         break;
         };

I try to use "dirty" hack and increase CF_TIMEOUT to 200 and have good message:
....skipped....
IPV4 address
sockaddr_ntop(91.198.36.12)
Connect to 91.198.36.12 = 91.198.36.12 on port 5308
cfrun:mail.midland.com.ua: No reponse hailing 91.198.36.12
cfrun:mail.midland.com.ua: socket: Operation timed out
Connection refused...

wait result pid = 56448 number 1

Can someone confirm that this is good workaround?

With best regards,
Alexander Shkurko

_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine

Reply via email to