Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 21 May 2004 09:03:57 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: Re: write hangs on socket shut down for writing Message-ID: <20040521160357.GA3224@efn.org> References: <20040421011730 DOT GA2072 AT efn DOT org> <20040421084659 DOT GD4092 AT cygbert DOT vinschen DOT de> <20040421093620 DOT GA2440 AT efn DOT org> <20040421095059 DOT GG4092 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040421095059.GG4092@cygbert.vinschen.de> User-Agent: Mutt/1.4.1i Organization: bs"d X-IsSubscribed: yes Note-from-DJ: This may be spam On Wed, Apr 21, 2004 at 11:50:59AM +0200, Corinna Vinschen wrote: > On Apr 21 02:36, Yitzchak Scott-Thoennes wrote: > > On Wed, Apr 21, 2004 at 10:46:59AM +0200, Corinna Vinschen wrote: > > > Did you try it with a recent Cygwin version? I used your above test > > > application and I'm getting a EPIPE (resp. a SIGPIPE) as expected. > > > > I think I had heard that others were not seeing this failure. I'm > > attaching an strace from my test program in case that may be helpful. > > Is there anything you can think of that might make a difference? > > Would you mind to debug that by yourself? You are seeing this problem so > I guess you're the best person to debug that problem. Setting a breakpoint > to 'fhandler_socket::sendmsg(msghdr const*, int, int)' should be fine. > I can't see any reason for Cygwin to do that. There's no loop anywhere > which could run endlessly. So either WSASendTo itself hangs, which is > pretty unlikely for overlapped sockets, or WSASendTo returns SOCKET_ERROR > and WSAGetLastError returns WSA_IO_PENDING so that WSAWaitForMultipleEvents > in wsock_event::wait hangs. Any chance that a firewall or anti-virus > software is interfering? I never had a chance to debug this, but upgrading to the 20040520 snapshot (from the 20040430) fixed this (as well as a hang using perl Net::Ping to ping 127.0.0.1 via udp that I was seeing and others apparently weren't.) Both were probably dependent on firewall (McAfee) or vpn software (Check Point VPN-1 SecureClient NG) I'm running, but seem to be better now. -- 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/