[netatalk-admins] a solution for papd's 256 MB spool limit


Subject: [netatalk-admins] a solution for papd's 256 MB spool limit
From: Abel Deuring (A.DEURING@BIONIC.zerberus.de)
Date: Sat Sep 12 1998 - 20:00:00 EDT


Hello

I hope that I have found a solution for the problem, that papd
stops spooling if more than 256 MB are transferred.

The bugfix was tested on a Linux machine (kernel 2.0.33),
netatalk 1.4b2, gcc 2.7.2 and MacOS 7.5/7.6, LaserWriter 8.4 and
8.5.

In file session.c, line 233, the "duplicate filtration" counter,
seq, is incremented and then compared with 0xffff, so that the
value of seq following on 0xfffe is 1. If this line is modified
so that seq can also have the value 0xffff, the 256 MB spooling
limit is avoided.

Thanks to Les Klein for giving me the hint, that my first patch
to papd was not as successful as I hoped, and for testing this
patch.

bye
Abel

The diff output from my patch:

diff session.c session.c.unpatched

233,234c233
< seq++;
< if (seq == 0) seq = 1;

---
> 	    if ( ++seq == 0xffff ) seq = 1;



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:33:16 EST