delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/26/15:08:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20050526190807.76545.qmail@web31708.mail.mud.yahoo.com>
Date: Thu, 26 May 2005 12:08:07 -0700 (PDT)
From: Sunil <funtoos AT yahoo DOT com>
Subject: Re: connect()/cygwin_select() hangs in >=1.5.15
To: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
Cc: cygwin AT cygwin DOT com
In-Reply-To: 6667
MIME-Version: 1.0
X-IsSubscribed: yes

this issue is not fixed in any later snapshots, not
even the just released 1.5.17.

can someone with the knowledge of cygwin socket code
comment on it please?

Thanks,
Sunil

--- "Gerrit P. Haase" <gerrit AT familiehaase DOT de> wrote:
> Sunil wrote:
> 
> > This piece of code hangs with cygwin1.dll >=1.5.15
> > during connect(), strace is attached. The same
> code
> > runs fine with cygwin1.dll version 1.5.13.
> > 
> > --------------------------------
> >  fd = socket (proto->family, 1,
> >        proto->stream_proto_num);
> > 
> >  if (fd < 0) {
> >   ;
> >   goto out;
> >  }
> > 
> >  if (options & LINK_CONNECTION_NONBLOCKING) {
> > # 553 "linc-connection.c"
> >   if (fcntl (fd, 4, 0x4000) < 0)
> >    goto out;
> > 
> >  }
> > 
> >  if (fcntl (fd, 2, 1) < 0)
> >   goto out;
> > 
> >  { long int __result; do __result = (long int)
> > (connect (fd, saddr, saddr_len)); while (__result
> ==
> > -1L && (*__errno()) == 4); rv = __result; };
> > # 596 "linc-connection.c"
> >  if (rv && (*__errno()) != 119)
> >   goto out;
> > 
> > ---------------------------
> > 
> > Similar problem with select() hang has been
> reported
> > earlier but nothing came out of it. I don't know
> if
> > its related. I am not sure why errno 119 is
> seen(see
> > panel.log) in this case, but that and the hang are
> the
> > common factors and strace looks similar.
> > 
> >
>
http://www.cygwin.com/ml/cygwin/2005-04/msg01331.html
> > 
> > Above code piece is taken from linc-connection.c
> in
> > the orbit2-2.12.2 package. This function is
> reached by
> > the gnome-panel and it hangs inside connect() as
> is
> > evident from the strace in panel.log and all I get
> is
> > a blank gnome-panel.
> > 
> > As I said, all I have to do to get it to work is
> to go
> > back to 1.5.13 snapshot. I am not sure what
> changed
> > between 1.5.13 and 1.5.15 to cause this.
> > 
> > Thanks for looking into it.
> > Sunil
> 
> There were some fixes regarding this, try a pre
> 1.5.17 snapshot,
> please.  I currently use the one from 2005-May-20
> and everything
> socket related where I encountered problems works ok
> with that.
>      http://cygwin.com/snapshots/
> 
> 
> Gerrit
> -- 
> =^..^=
> 
> --
> Unsubscribe info:     
> http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:      
> http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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