-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Todd Plessel wrote:
> 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.

I don't think that changing Wget for this would be appropriate. It's not
Wget's responsibility to ensure the server doesn't time out; it's the
server's. Of course, you're welcome to make such a change yourself
(that's what Free Software is all about!), but I can't tell you how it
might be done, and it may be system-dependent.

> 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?

This would be the better solution; but I don't know how it's done. I
think some servers will automatically send an ack if you write
something, anything, to stderr, but I'm not sure. You'll have to check
in your server's documentation.

It seems to me, though, that the infrastructure should be rearchitected
a bit to avoid such extremely large waiting periods; it strikes me as
very inefficient.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG6aOQ7M8hyUobTrERCKDFAJ0ej/1f/6MOAV/ziEPD8rc15lejLACZAR5a
wUsiaWXaBxbp0M7ydD72jLI=
=LGVB
-----END PGP SIGNATURE-----

Reply via email to