[Nut-upsdev] infinite loop in clients/upsclient.c connect

Charles Lepple clepple at gmail.com
Mon Mar 12 14:43:27 CET 2007


On 3/12/07, Arjen de Korte <nut+devel at de-korte.org> wrote:
>
> > I'm not sure about the logic inside the switch statement in general,
> > actually. If the error is EAFNOSUPPORT, I would think we would need
> > more than just to break out of the switch statement.
>
> Yes, I goofed up BIG TIME here. We should really move to the next addrinfo
> element, rather than retrying connect() ad infinum. I'll post an update
> later today.

Ah, multiple addrinfo elements makes sense now. I was wondering what
was going on there :-)

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list