[X2go-dev] [X2go-user] 10x printing speed increase for x2go printing

--[ UxBoD ]-- uxbod at splatnix.net
Mon Apr 11 10:34:58 CEST 2011


----- Original Message -----
> Hi Phil,
> 
> On Sa 09 Apr 2011 09:29:49 CEST "--[ UxBoD ]--" wrote:
> 
> > if( $mounts=~m/$spooldir/)
> > {
> >      move ("$printdir/$file", "$spooldir") or die "$!: Can't rename
> > $file to $homedir/.x2go/C-$session/$file";
> >      $file $spooldir"");
> >
> >      my $counter = 0;
> >      while ( ! -f "$spooldir/$file.ready" && $counter < 10 )
> >      {
> >         open (RFILE,">$spooldir/$file.ready");
> >         print RFILE "$filen$title";
> >         close (RFILE);
> >         $counter = $counter + 1;
> >      }
> >      if ( $counter > 1 ) { syslog("info", "Failed to write ready
> > file - Count $counter - C-$session/$file"); }
> > }
> > else
> > {
> >      unlink("$printdir/$file");
> > }
> 
> I am not sure if this really is a solution to what you observe. This
> only seems like a workaround. The syslog entry however is valuable.
> 
> Do you think you can find some time to debug what is really going on?
> We actually need documentation of what happens during
> cups-x2go/x2goprint'ing...
> 
> Maybe we will find a solution that really tracks the issue down
> instead of looping around it (wouldn't it need some sort of a sleep
> statement in the loop?).
> 
> Greets,
> Mike
> 

Agreed Mike; though I have the feeling it may be less worth than the effort involved unless somebody knows the internal working of Perl and SSHFS ? A sleep could be added though I have tried to avoid slowing down the process to much. Since adding that loop code we have not experiencing any further failures; though time will tell.

Thanks, Phil



More information about the x2go-dev mailing list