[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: select/accept DECnet connection question ...
Yes. If you set the socket to blocking then it works
Patrik
________________ Reply Header ________________
Subject: Re: select/accept DECnet connection question ...
Author: Steve Whitehouse <steve@gw.chygwyn.com>
Date: Wed, 9 Feb 2000 09:15:58 +0000
>
> I've hit this, I think its to because accept needs to be able to block - so you need to set the socket to blocking before calling accept(). >
> I don't know if there is any way aroud this...Steve?
>
> Patrick
>
Its a nasty bug... if you set the socket to non-blocking, accept() should
not block. If select() says that the (listening) socket is readable, then
accept must succeed. This is required by POSIX.
I'm not sure when I'll get a chance to look into it, but Rob is 100%
correct in his expectations of how it should work. Do I gather from
your message above that setting the socket to blocking make it work
ok ? If so thats a big clue to tracking down the problem,
Steve.
-----------------------------------------------------------------------------
To unsubscribe from this list, send a mail to majordomo@dreamtime.org
containing the line "unsubscribe linux-decnet"
-----------------------------------------------------------------------------