AW: AW: WebSocket asynchronous reads

2015-09-06 Thread Steffen Heil (Mailinglisten)
Hi


> > Which means I have to either buffer all incoming messages until I am
> > ready to process them (might occupy lots of memory) or I have to drop
> > them. Both is not really ideal.
> I'm largely ignorant of the asynchronous world, but I do have a question 
> about what you're asking. Are you really asking if Tomcat can
> buffer all that data for you (which might occupy lots of memory) until you 
> are ready to accept it? It seems like if you aren't comfortable
> with dropping the data on the floor, then it's your responsibility to accept 
> the data and deal with it yourself, right?

No.
I am asking tomcat not to read data from the socket, if the app is not ready to 
receive it in the first place.
The data will then stay in the os inbound buffers and fill up the receive 
window, so the *sender* will be blocked eventually.
TCP allows the sender to know, when the receiver cannot handle more data right 
away, just the websocket api cannot.

Regards,
  Steffen



smime.p7s
Description: S/MIME cryptographic signature


Tomcat 8 - server.xml Not Updating

2015-09-06 Thread Richard Morey


Hi --

I have just installed Tomcat 8 on Windows 2008 R2. I go into the host 
manager and add two virtual hosts. However, the server.xml file does not 
get updated. When I restart the Tomcat service the two virtual hosts no 
longer appear in the host manager web UI.


Additionally, if I manually add hosts to the server.xml file they do not 
appear either.


It appears as though Tomcat is neither reading nor writing to this file, 
however, when I tried renaming it Tomcat - as expected - would not 
start.


Has anyone else run into this problem? Can anyone offer a solution?

Thanks

Rich