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
Post a Comment