X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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)" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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 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/