On 05/10/2013 20:42, Konstantin Preißer wrote:

> One question, would it be possible to make Session.getAsyncRemote()
> throw some RuntimeException when using the BIO connector, instead of
> silently using blocking writes?

No. WebSocket is written on top of the Servlet 3.1 API. It has no access
to Tomcat internals.

> If getAsyncRemote() instead threw an exception saying that you need
> NIO or APR for this method, I think this might save someone such a
> surprise (but I must admit that I do not know much about Servlet
> 3.1's NIO features and how there the situation is with BIO
> connector).
> 
> What do you think?

I think breaking apps in this way is worse than using blocking IO.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to