[mythtv] [PATCH] Mythvideo: better HTTP for imdb.pl

Neil Whelchel koyama at firstlight.net
Tue Apr 12 00:01:17 UTC 2005

On Mon, 11 Apr 2005, J. Donavan Stanley wrote:

> Neil Whelchel wrote:
> >Hello,
> >This patch modifies imdb.pl to use wget instead of LWP.
> >Wget seems to handle bad/slow connections much better.
> >
> >
> Why the 8 second read timeout?
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
The 8 second timeout seems to provide the best results with everything
I have tested so far which is:
56K Dialup
Sprint PCS
DirecWay satellite (2way)

I have not tested it on things like calbe or DSL,
but I don't think it would be much of an issue.
Not all of the timeouts are 8 seconds, one is 20 seconds.
Maybe, I should define these somewhere clear at the top of
the script.

The problem I have been having with LWP is that it hangs
very frequently on my dialup. (Maybe as much as half of the time).
On average, if I am to ever get a response from IMDB, it is within
about 4 seconds, so double it to be safe. If this times out,
there are still three retries letf.. (-t 4 switch).

Sure, this could be done in native Perl, but since wget is already
used in mythfilldatabase, I thought that it would be cleaner
to move all the http stuff into one spot.

-Neil Whelchel-
First Light Internet Services
760 366-0145
- We don't do Window$, that's what the janitor is for -

Bubble Memory, n.:
        A derogatory term, usually referring to a person's
intelligence.  See also "vacuum tube".

More information about the mythtv-dev mailing list