[mythtv] [PATCH] Mythvideo: better HTTP for imdb.pl
koyama at firstlight.net
Tue Apr 12 00:01:17 UTC 2005
On Mon, 11 Apr 2005, J. Donavan Stanley wrote:
> Neil Whelchel wrote:
> >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
The 8 second timeout seems to provide the best results with everything
I have tested so far which is:
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 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.
First Light Internet Services
- 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