cormacmul has asked for the wisdom of the Perl Monks concerning the following question:

So i have this piece of code, it is working and everything but its a bit slow. I am using IO::Socket and setting $socket->autoflush(); Then i print my output to the socket and after this i go $document=(join('',<$socket>); print "DOC IS:$document\n"; Which i read in some perl FAQ should work for flushing. Does anyone have any hint on what might be going wrong. Or a fairly indepth tutorial wwhere i might find out about socket stuff Cheers Cormac
  • Comment on PERL SOCKET to Servlet slow comm. (No Flushing Maybe)

Replies are listed 'Best First'.
Re: PERL SOCKET to Servlet slow comm. (No Flushing Maybe)
by Anonymous Monk on Aug 22, 2001 at 00:39 UTC
    Your join waits for the remote server to close the connection, perhaps it is waiting for something else from you before timing out the connection.