delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/28/14:49:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: Multithreaded accept/connect hang (WSAEINPROGRESS)
Date: Mon, 28 Jul 2008 14:49:02 -0400
Message-ID: <00458A287E7A8D44941CBE06478DE90703E391BE@ALPMLVEM15.e2k.ad.ge.com>
From: "Labarre, Jean (GE Healthcare)" <Jean DOT Labarre AT med DOT ge DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m6SInjBd029500

  Hello,

I am working on a project making use of the cygwin X server (Xwin). One
requirement we have is to avoid any potential security issue so I was
trying to modify the Xwin window manager and clipboard code so that it
would work with the "-nolisten tcp" option (currently, both window
manager and clipboard run in threads and talk to the X display through a
tcp/ip socket). The problem is, these modiifcations lead to hangs about
30 to 40% of the time. 

Using strace, I found out that the hangs coincide with a WSAEINPROGRESS
error status being returned by connect. It's the same issue that is
described here:
http://sourceware.org/ml/cygwin/2007-06/msg00669.html. When I use a
recent cygwin1.dll snapshot as suggested in this post, the locks do not
happen. Unfortunately, we are not willing to use a snapshot in our
product release.

So...I have two questions:

1- Do you have an idea of when the 1.7 cygwin release (with this fix
included) will come out? I've read some mentions of "some time this
year" in other posts, but I'd like to get a more definite date if at all
possible...

2- If it's not going to be any time soon (or if nobody knows precisely),
could somebody give me some details on how to "implement accept in
non-blocking mode manually in <my> application", as Corinna suggested in
the aforementionned post? 
I understand this second question might be better directed to the
cygwin/X mailing list. Let me know if it's the case.

Thanks in advance,
Best regards
Jean Labarre

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