This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: recv() blocking for non-blocking socket
On Mon, Sep 10, 2001 at 11:38:40AM -0400, Omid Roshan-Afshar wrote:
> I've looked through the archive, and I found
> some discussion about using accept() on non-blocking
> sockets, but none on recv(). If someone could spot
> any stupid errors in the following code, that would
> be great.
>
> {
> int true = 1;
> if (ioctl(sock_handle, FIONBIO, &true) != 0) {
> if (errmsg!=NULL)
> sprintf(errmsg, "ioctl(): %s", strerror(errno));
> return GFAPI_ERR_FAIL;
> }
> }
>
> I call recv after I do this and it blocks. I *think* I'm
> doing the appropriate thing to make the socket non-blocking.
Actually that's a bug in Cygwin 1.3.2. It should be solved
with the upcoming 1.3.3 version.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/