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

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

Thread Previous | Thread Next
From:
Tim Bunce
Date:
April 10, 2000 03:04
Subject:
Re: IO::Socket returns "Unknown error" (APR#257)
Message ID:
20000410110034.O20429@ig.co.uk
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.

Tim.

Thread Previous | Thread Next


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