[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non-blocking connect()
From: |
山本和彦 |
Subject: |
Re: non-blocking connect() |
Date: |
Tue, 09 Nov 2004 11:19:34 +0900 (JST) |
Hello,
> > I'm not sure but I guess this patch does not solve the problem
>
> Can you try it, please.
My friend is now using your patch. He has not met the problem so far.
But I would point out a few things.
(1) potential infinite loop.
If connect() is always interrupted, your code falls into infinite
loop. If you would like to stick to the current logic, I'd suggest
to prepare a limitation.
(2) The block starting with
if (xerrno == EADDRINUSE && retry < 20)
is not necessary anymore. This is only effective in the original
code.
--Kazu
- Re: non-blocking connect(), Han Boetes, 2004/11/01
- Re: non-blocking connect(), Kim F. Storm, 2004/11/01
- Re: non-blocking connect(), 山本和彦, 2004/11/01
- Re: non-blocking connect(), Kim F. Storm, 2004/11/01
- Re: non-blocking connect(), 山本和彦, 2004/11/01
- Re: non-blocking connect(), 山本和彦, 2004/11/02
- Re: non-blocking connect(),
山本和彦 <=
- Re: non-blocking connect(), Kim F. Storm, 2004/11/09
- Re: non-blocking connect(), 山本和彦, 2004/11/10