delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/10/13:33:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 10 Sep 2001 13:32:45 -0400 (EDT)
From: Omid Roshan-Afshar <omid AT acorn-networks DOT com>
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: recv() blocking for non-blocking socket
In-Reply-To: <20010910184646.T937@cygbert.vinschen.de>
Message-ID: <Pine.GSO.4.21.0109101332250.899-100000@wiehle.acorn-networks.com>
MIME-Version: 1.0

Alright, thanks alot. Is there a temporary work-around?

On Mon, 10 Sep 2001, Corinna Vinschen wrote:

> 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 AT cygwin DOT 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/
> 


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019