-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Steffen,

On 8/26/15 12:50 PM, Steffen Heil (Mailinglisten) wrote:
>>> Is there a way to tell tomcat to stop receiving data for a
>>> certain websocket? (Not to close it, but not to read from
>>> inputstream for some time.)
> 
>> Sorry, no. The best you can do is a no-op branch in the  message
>> handler.
> 
> 
> 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?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJV4J86AAoJEBzwKT+lPKRYx8AQAIDpb0yUftV2BU9YKbCBntHQ
zFPTXsp+CtTa7hBphOFFTe/OZ21sKYJDD+dOQiWv/YP3mUClc0OZ4ZOmqt25UJfm
X7xhWg0qfaCceY8gC1VatJb738wTLErGsWDwugHvspFDyvEjxsPF/drNGpIPlBee
G/qu1z02RqolPXA+GijKZPEnCJhh2xw8Utu9JO9g/MCGCWN4SFItcRaQZlD6Mx/S
tp7zQMWL1OP7Uo5672cfqUZkXHbfoM5l8H8cW/K1pqCROCKsy9RCmYB1ne1yhiek
9uF8xLu1vWIsAiZp+yMPCyLtpea80J+iwUKDu612AisLVyTPJdzalk4sbYdmu1h7
kI1plbNi4oIp1nZ3RbjJFavzCs4ffepvXMjJKols15ggFgddKTXBw8zwQiJ1MJ60
MOQzWm9IDYpO7p/nBiinP66kt6IHIYJs7zu9SnNI9ELxydLUIRpkQFvds7wygee1
fVe2ha1vgxmCtMGcWlGAgYW2VINdLvAaD1cEcHOGc2i1M3vj4rppijffZBAXTnZ7
X1y+v/+cESmKXiKAUUUjerQxcmj4g7xMbBfcqEl+VzfnAcAe7gDWz8adRbonaDXa
+3QIh6qCeP8dVNa834Fgd6mLcbHKnj26uEoFwsPm3buQEAUBFmDL/dOTR9Uw09VJ
5uN1OVnyJ5kqUyef1Bn5
=+e6t
-----END PGP SIGNATURE-----

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

Reply via email to