Re: Getting (Bad protocol 'tcp') errors under Solaris

Gisle Aas <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
"Michael J. Freeman" <[email protected]> writes:

> 500 Can't connect to rt.innocent.com:443 (Bad protocol 'tcp')

This means that getprotobyname("tcp") fails.  On many Unix systems
this is looked up from /etc/protcols.  Try:

  $ perl -le 'print scalar(getprotobyname("tcp"))'

This ought to print 6 on most systems.  If it doesn't try to run it
under truss to figure out what is happening.

--Gisle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.