Subject: [netatalk-admins] fixing papd - pre-patch 2
From: Andras Kadinger (bandit@freeside.elte.hu)
Date: Thu Sep 03 1998 - 20:00:15 EDT
Ok, if the previous one wasn't too bad, the you might want to try this.
It should be applied over pre1.
This limits the line length papd will want to consider as one line to an
(arbitrary) 4096 bytes; no good mannered DSC-conforming document should
have lines longer than 255 bytes as per spec, so this hopefully won't
hurt much. Most importantly, it will keep papd from eating up all memory
in the machine (and in nearby computer stores). Also, since the line
length is limited, papd no longer will spend a lifetime in it's quest
for finding a line ending character in a - let's say - 10MB long 'line'
each time as it grows from zero to 10MB in 1K increments as could happen
before. Since our ATP/PAP stack is not asynchronous, I bet this will
help with people's timeout problems...
Andras
PS: I hand modified the patch so it might not apply cleanly, but since
it's a one-liner, applying by hand is fairly trivial. Mail me if you
want pre1 and pre2 rolled together.
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:33:14 EST