develooper Front page | perl.perl5.porters | Postings from April 2000

Re: IO::Socket returns "Unknown error" (APR#257)

Thread Previous
From:
Tim Bunce
Date:
April 10, 2000 12:49
Subject:
Re: IO::Socket returns "Unknown error" (APR#257)
Message ID:
20000410204233.A26088@ig.co.uk
On Mon, Apr 10, 2000 at 08:41:56AM -0700, Gurusamy Sarathy wrote:
> On Mon, 10 Apr 2000 11:00:34 BST, Tim Bunce wrote:
> >On Sun, Apr 09, 2000 at 08:43:02AM -0700, Gurusamy Sarathy wrote:
> >> This happens because Windows is missing an entry for "http" in the
> >> winnt/system32/drivers/etc/services database.  It works if you
> >> add a line like the following in that file:
> >> 
> >>     www       80/tcp      http
> >> 
> >> It apparently worked in previous versions because IO::Socket used
> >> to ignore failures in looking up the service name when the port was
> >> also specified, but doesn't anymore.
> >
> >Why not?
> >
> >I could understand it warning if the port numbers differ but I see no
> >value in warning if the name can't be looked up but a number has been
> >supplied.
> 
> I would agree.  The 5.6.0 behavior looks accidental.  (BTW, I don't
> understand what you mean by "warning".  Perl doesn't produce any
> warnings here.)

Ah, that's just me badly speed reading p5p when I don't have time to
read it at all.

Tim.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About