delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/21/05:51:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 21 Apr 2004 11:50:59 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: write hangs on socket shut down for writing
Message-ID: <20040421095059.GG4092@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20040421011730 DOT GA2072 AT efn DOT org> <20040421084659 DOT GD4092 AT cygbert DOT vinschen DOT de> <20040421093620 DOT GA2440 AT efn DOT org>
Mime-Version: 1.0
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 AT cygwin DOT 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 AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019