change Default speed Strategy
-----------------------------
Key: GEOS-383
URL: http://jira.codehaus.org/browse/GEOS-383
Project: GeoServer
Type: Improvement
Reporter: dblasby
Assigned to: dblasby
Fix For: 1.3.1
I'd like to see the default speed strategy (ie. start sending the response out as soon as you generate anything to send) to a slightly different version:
1. buffer the first (say) 25k
2. start streaming after the 25k
The reason for this is because most error occur right at the start of a response (ie. in the first few kb it sends out). Unfortunately, with the speed strategy (the current default) you will not get proper error messages (because you've already sent out data and cannot "unsend" it and replace it with a service exception).
The other main strategy is "full buffer" which will buffer the entire response. When the response is finished (with no errors), it will send the reponse to the user. If there was an error (at any stage) it can "unsend" the reponse because it hasnt actually sent anything. This works quite well since all error are properly reported.
The new version I'm proposing has the best of both worlds -- fast streaming output and the ability to report errors (in most cases). This makes a sensable default.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira