Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 21 Apr 2004 11:50:59 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: write hangs on socket shut down for writing
Message-ID: <20040421095059.GG4092@cygbert.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20040421011730.GA2072@efn.org> <20040421084659.GD4092@cygbert.vinschen.de> <20040421093620.GA2440@efn.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040421093620.GA2440@efn.org>
User-Agent: Mutt/1.4.2i
Note-from-DJ: This may be spam

On Apr 21 02:36, Yitzchak Scott-Thoennes wrote:
> On Wed, Apr 21, 2004 at 10:46:59AM +0200, Corinna Vinschen <corinna-cygwin@cygwin.com> 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?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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

