tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: 8.0.x / 7.0.x progress
Date Sat, 05 Oct 2013 19:45:38 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message