Date: Thu, 10 Sep 1998 11:43:40 -0400 (EDT) From: HighWind Software Information <info@highwind.com> To: james.g.mansion@hsbcgroup.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: Thread Problems Message-ID: <199809101543.LAA17144@highwind.com> In-Reply-To: <8025667B.003F044A.00@hbmdtesmtp1.tex.hsbcmidland.com> (james.g.mansion@hsbcgroup.com)
next in thread | previous in thread | raw e-mail | index | archive | help
The latest edition of Stevens Network Programming has a discussion on this point. The accept should not be done in blocking mode, for exactly the reason suggested below. If you do a blocking accept and the client closes before the connection was complete, accept() should return an error. Then you just loop back into accept again. No harm done. I don't see how this is relevant anyway. The libc_r is supposed to set that fd to non-blocking under the covers. The bug (I believe) is that somehow the fd becomes blocking. I posted a test program that illustrates the problem. See for yourself. -Rob To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809101543.LAA17144>