Wrong calculation of content lengths and additional \r's together with Kaffe

Helge-Frank Zimpel Helge.Zimpel at Baeurer.DE
Wed Mar 10 02:08:29 PST 1999


I compiled JServ (version JServ 1.0b1) together with transvirtual 
kaffe on the Cobalt Qube (Linux/MIPS).
There something strange happens. A out.print("test\n") gives 
"test\r\n" as output and the content size is calculated one 
character to small. For every break, the content-size is calculated
one character to small. Because of this, the browser didn't stop 
loading the page (especially when using stylesheets, netscape is 
very sensitively to the wrong content-length).

My questions:
Where is the calculation of content-length done? (JSDK, JServ, 
Apache?)
Is it kaffe, which adds the \r before the \n? (if I use kaffe at the
command-line and make a println(), everything is correct) What 
might be a
possible workaround?

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: Helge.Zimpel at Baeurer.DE
WWW: http://www.baeurer.de/


More information about the kaffe mailing list