I am using Solaris JDK 1.1.7 and had the same problem. I verified
that extra "\r" were being inserted plus the "max" argument to
ServletInputStream.readLine() was completely ignored. As painful
as it is, I ended up using my own readline that fills the buffer with
repeated calls to ServletInputStream.read() to get single bytes
at a time. I did this and have not had any problems since except
that on large http forms a lot of CPU time is used.
I also vaguely remember a reference to this bug on Sun's bug
site that said something like "yes we know about the bug, but
we have no plans to fix it."
> Is anyone here using jserv together with kaffe?
> I have the problem that the calculation of the content-length http-
> header gets wrong. There are extra "\r" characters in the output
> when having line-breaks which aren't added to the value of the
> content-size http header. So the browser didn't stop loading the
> page because of the false calculated content-length header.
> Has anybody the same problem? If not i would like to know in
> which environment (os, kaffe and jserv version) it works correctly.
>
> Thanks
>
> Helge Zimpel
>
>
> ----------------------------------------
> Helge-F. Zimpel
>
> baeurer Informationstechnik GmbH
> Entwicklung baeurer.ONLINE
> Eckendorfer Str. 2-4
> D-33609 Bielefeld
> Tel: +49 521 966520
> Fax: +49 521 9665299
> E-Mail: [EMAIL PROTECTED]
> WWW: http://www.baeurer.de/
>
>
> ----------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> READ THE FAQ!!!! <http://java.apache.org/faq/>
> Archives and Other: <http://java.apache.org/main/mail.html/>
> Problems?: [EMAIL PROTECTED]
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]