Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: AW: Re: epg2timer



Hi Klaus,

Klaus Schmidinger wrote:
> 
> Manfred Schmidt-Voigt wrote:
> > 
> > Hi List
> > 
> > Tanks for all your answers.
> > 
> >  I have chased a little bit through the code of the VDR. 
> The SVDRP interface
> > is really another Keyboard frontend. But here the keyboard 
> is a socket. That
> [...]
> 
> Please try adding the following two lines to VDR/svdrp.c:
> 
> --- svdrp.c     Sun Nov  4 12:25:05 2001
> +++ svdrp.c     Sun Jan 13 12:25:32 2002
> @@ -900,6 +900,7 @@
>       if (NewConnection)
>          lastActivity = time(NULL);
>       if (file.Ready(false)) {
> +        while (file.Ready(false)) {
>          unsigned char c;
>          int r = safe_read(file, &c, 1);
>          if (r > 0) {
> @@ -940,6 +941,7 @@
>             isyslog(LOG_INFO, "lost connection to SVDRP client");
>             Close();
>             }
> +        }
>          }
>       else if (Setup.SVDRPTimeout && time(NULL) - 
> lastActivity > Setup.SVDRPTimeout) {
>          isyslog(LOG_INFO, "timeout on SVDRP connection");
> 
> This should make it collect incoming characters faster, since it
> won't return to the main loop after each character (haven't 
> tested it, though).
> Let me know if this speeds up things. I'll add it to the official
> source then.
> 
> Klaus
> 

This is the 'golden patch' to make things working perfectly, even on my
outdated P200. Before this I had to set 'max_summary = 170' in
epg2timers to (mostly) avoid the annoying timeouts by loadvdr.pl. I did
some heavy testing to verify that there are no more timeouts, even with
the max setting of 9000. Thanks for the patch and to Manfred for the
tip.

Mel


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Home | Main Index | Thread Index