Problem: I'm using
wget -q -T 0 -O - 'http://some.remote.host/cgi-bin/some_script?...' to access a PERL-CGI script on a remote computer running Apache httpd that is configured with a 300 second timeout. The script sometimes takes more than 300 seconds to begin sending data (because there is often significant data processing required before any bytes can even begin streaming). Consequently, it disconnects at exactly 300 seconds and no bytes are received. Q1. Is there a way that I can run wget that somehow avoids this timeout. For example, by sending an out-of-band ack to stderr every 30 seconds so httpd does not disconnect. By out-of-band, I mean it cannot be included in the result bytes streamed to stdout since these are specific binary data formats, images, etc. Q2. If not, then could the PERL-CGI script be modified to spawn a thread that writes an ack to stderr to keep the httpd from timing-out? If so, can you point me to some sample code? Thanks, Todd
