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

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

Thread Previous | Thread Next
Gurusamy Sarathy
April 10, 2000 08:43
Re: IO::Socket returns "Unknown error" (APR#257)
Message ID:
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

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.)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About