jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: HTTP upgrade and multi-threading

From: Rajiv Mordani <rajiv.mordani_at_oracle.com>
Date: Wed, 02 Jan 2013 16:16:19 -0800

I don't think we say anything about ServletInputStream or
ServletOutputStream and thread safety in the spec anywhere. At first
thought
I am ok with requiring the application to be responsible for thread
safety during upgrade with this.

- Rajiv

On 12/27/12 1:54 AM, Mark Thomas wrote:
> Hi,
>
> What is the expectation for the thread-safety of the
> Servlet[Input|Output]Stream when processing an HTTP upgrade?
>
> The Servlet specification discusses thread safety for a number of
> objects but not these.
>
> My expectation is that the application is responsible for thread safety.
> Is this correct? Once we have agreement on this, it would be helpful for
> some clarification to be added to the specification.
>
> Mark