* John Denker -- Monday 02 July 2007:
> Every time you look at /sim/logging/classes it gets longer, without bound.

>    http://www.av8n.com/fly/fgfs/fg_props.diff

Whoops. Thanks, applied.



> When the length of the string exceeds 16k or thereabouts, the web
> interface dies.  You don't even get an html error message;  you
> get a read error at the http layer.

Yes, indeed. I looked into it haven't decided yet what to do. It's
really Curt's file, anyway.  :-)

The problem is that HttpdChannel derives from plib's netChat class,
which is really meant for line based communication, and which derives
from netBufferChannel, which has a hard-coded and not configurable
out-buffer of size 16384. HttpdChannel, however, dumps whole HTML
pages on it, with overlong lines even.

The simple (& cheesy) solution would be to just check for the size
of the 'response' string, and to output an overflow error page if
it's too big. But 16kB isn't *that* much for a page, it's just too
much for a line, so one could also truncate overlong property values.(?)

The better approach would be to replace netChat, but I'm not really
keen to mess with that file shortly before a release, especially
since you fixed the above bug, anyway. But it's certainly something
to keep on the TODO list.

Thanks for the patch & bug report
m.  

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to