delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/17/14:31:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: ginger.cc.utexas.edu: grouse owned process doing -bs
Date: Fri, 17 Aug 2001 13:26:16 -0500 (CDT)
From: Michael Hoffman <hoffmanm AT cshl DOT org>
To: Eric Yablonowitz <eyablon AT askjeeves DOT co DOT uk>
cc: Cygwin <cygwin AT cygwin DOT com>
Subject: RE: Cygwin Perl LWP timeout workaround
In-Reply-To: <68417DD3E6D0D4119A16009027C40A8517ED41@AJUKMAIL>
Message-ID: <Pine.A41.4.21.0108171317360.48270-100000@ginger.cc.utexas.edu>
MIME-Version: 1.0

On Fri, 17 Aug 2001, Eric Yablonowitz wrote:

> Thanks for posting this workaround.  It has helped me immeasurably.
> The funny thing is that I experience a very similar timeout problem
> using Net::FTP as well as LWP.  Anyone know if these could be
> related?

As I've said before, this problem is very hard to diagnose because I
haven't found any way to reproduce it reliably. If anyone else has,
please let me know.

But here's what I've found:

IO::Socket::connect() makes IO non-blocking if there is a timeout
value given.

    $blocking = $sock->blocking(0) if $timeout;

Shouldn't a timeout value mean that IO should be blocking? Can someone
please answer this even if they don't have anything else to add?

If so, then this seems consistent with intermittent failures, i.e., if
non-blocking IO is used and the response doesn't come in RIGHT AWAY, a
timeout result is returned?

However, Solaris's IO::Socket::connect() seems to do the same thing
and I haven't heard of problems with it, although I haven't done
extensive usage to get this bug to arise.
--
Michael Hoffman <hoffmanm AT cshl DOT org>
Cold Spring Harbor Laboratory




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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