Brad Arrington <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I ran into the same problem you did, I thought it was something I
> was doing wrong until I read your email...
> 
> Here is the fix I came up with.
> 
> --- check_tcp.c-current Mon Feb 25 15:11:40 2008
> +++ check_tcp.c Mon Feb 25 23:48:45 2008
> @@ -82,6 +82,7 @@
>         if (fcntl(s, F_SETFL, O_NONBLOCK) == -1)
>                 goto bad;
> 
> +       gettimeofday(&cte->table->conf.timeout, NULL);
>         bcopy(&cte->table->conf.timeout, &tv, sizeof(tv));
>         if (connect(s, (struct sockaddr *)&cte->host->conf.ss, len)
> == -1) { if (errno != EINPROGRESS)
> 
> I should check for return codes on gettimeofday but here it is
> anyway... I submited a bug report too.
> 

I'll handle the bug report, thanks for reporting.

Reply via email to