Closed mmacfadden closed 3 years ago
This is related to the following Akka HTTP issue.
https://github.com/akka/akka-http/issues/1358
The key information being in this comment: https://github.com/akka/akka-http/issues/1358#issuecomment-366741028
We need to update the server to use fromSinkAndSourceCoupled
instead of fromSinkAndSource
in the WebSocketService.
Versions
Describe the Bug When the javascript client tries to close the connection, the close process does not complete cleanly, and often waits for a timeout. This is because the server is not sending back the web socket close FIN message. It is supposed to work as follows:
Without the server sending the TCP FIN message back to the client, the client will wait until whatever timeout the specific implementation provides. This often results in a protracted delay, as well as an error event being emitted.
Expected Behavior The server should properly complete the close request.