IPP Mail Archive: Re: IPP>MOD maximum lengths of some strings not explicitly stated in model

Re: IPP>MOD maximum lengths of some strings not explicitly stated in model

Robert Herriot (Robert.Herriot@Eng.Sun.COM)
Tue, 18 Nov 1997 19:02:27 -0800

> From masinter@parc.xerox.com Tue Nov 18 18:52:40 1997
>
> > It just makes the code a bit more complex and adds yet another test
> > case that may never be tested until a customer tries it. Other
> > than that, it doesn't matter.
>
> No matter what the length limit is, you'll have to implement the limit
> and test the limit.
>
> Why is testing 1K bytes easier than testing 100K bytes?
>
> Larry
>

I expect to read the URI string into a fixed size buffer which I would
prefer not to be 100K bytes. If I have a limit of n, a single read into
this fixed-size buffer of size n suffices. If I don't have a limit, I have to
loop doing reads and concatenates of k bytes at a time.

Bob Herriot