2014-03-26 14:52 GMT+01:00 Mark Thomas <ma...@apache.org>: > Yes, it is a solvable problem as long as you drop the self-imposed > requirement to run on top of the Servlet API. Now the difficulties are > understood, I'm beginning to think about dropping that requirement and > using some of the Tomcat internals directly. The blocking/non-blocking > gets a whole lot easier very quickly if you do that. > > Ok. I don't think it would make much difference in the container code since the upgrade mode is light already and all it needs is to pass down a "block" flag, but your websocket impl would be able to shed its simulated blocking.
Rémy