java - Delay when closing Tyrus WebSocket Sessions -


i'm building service tyrus in standalone mode (grizzly server) send huge amounts of binary data via ws client. in setup, service located behind proxy server, data send, first buffered @ proxy , after proxy in unix send buffer.

at point in transfer, want serverside close connection. when so, client gets onclose event data waiting in buffer , proxy sent.

this behavior, messages handled sequentiell , therefore close message last 1 recieved client, understandable.

but need way close websocket connection in realtime. underlying tcp connection close , therefor client won't ever remaining data stored in send buffer , proxy.

does got idea how create such behavior tyrus api?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -