[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: select/accept DECnet connection question ...
>
> 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.