libperlwww problems (fwd) (and Hi y'all)

Jack Shirazi - BIU (js@bison.lif.icnet.uk)
Fri, 12 Aug 94 10:29:01 BST


Hello, just joined this group - just what I've been looking for! 
 
Anyway, about the socket stuff, is it possible that some of
you with problems on different machines are using the same
sys/socket.ph mounted from different machines?
 
The wwwhttp.pl code uses just AF_INET and SOCK_STREAM from
the ph file. AF_INET is 2 for both BSD and SYSV systems,
SOCK_STREAM is 1 for BSD and 2 SYSV.

The sockaddress structure is the same, and should remain
the same on any system as it a tcp/ip defined structure.

BTW, one observation and one question about wwwhttp.pl:
The bind and all that hostname and $ThisSock stuff is not necessary,
(though it doesn't hurt).
I don't understand why the connect and the reading of the socket are
all in the same timeout - in www.pl you are suggesting a 30 second
timeout for the response, and this includes the reads. I regularly
get response times larger than that for even small files.