Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9 rewriting charset=utf-8 on response headers

With servlet STRICT, at least 2 String objects per header line. (more for multi-value header lines)

AFAIK, the reused header strings are still strict in the sense of HTTP, but not strict in the sense of servlet spec.


--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Thu, Oct 17, 2013 at 6:26 AM, Ben Summers <ben@xxxxxxxxxxxx> wrote:

On 17 Oct 2013, at 06:23, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:

>
> Looks like a org.eclipse.jetty.http.HttpGenerator.STRICT property would be
> the equivalent one for the response headers.
>
> Know that strict behavior will increase memory usage.
> Essentially with strict usage, no string portions can be reused, making
> every request (and now response) effectively churn the GC for no good
> reason.


Approximately how many objects would this create per request?

It doesn't feel quite right that the web server is rewriting the headers on the responses.

Thanks!

Ben



--
http://bens.me.uk

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top