emacs-pretest-bug
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]