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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -