[undertow-dev] WebSocket sending back pressure

peter royal peter.royal at pobox.com
Wed Jul 6 16:56:03 EDT 2016


I am finding that sometimes I have WebSocket connections that are unable
to flush messages out the socket at the rate I am generating messages.

I'm using the core.WebSockets class to send messages. Is it possible to
achieve this with what exists currently? My initial guess is no..
conceptually it would be nice for core.WebSockets to return a
CompletableFuture-style object that would let me get a callback when the
message is sent, or have the ability to cancel it if it is still sitting
in the send queue.

I'm happy to help build something into Undertow if it is a welcome
addition.

-pete

-- 
(peter.royal|osi)@pobox.com - http://fotap.org/~osi


More information about the undertow-dev mailing list