Closed
Description
-
Version:
1.8.1 -
Subsystem:
@libp2p/websocket , connection manager, components
Severity:
High
Description:
Steps to reproduce the error:
I have a test scenario with a few nodes that I connect to each other and send some data
Sometimes when terminating a node it endlessly waits for the Websocket transport to shutdown. This is because there are connections that does close (?) and in the it-ws
library there are no calls to server.closeAllConnections()
before close
.
I have managed to make the shutdown work better if modify
to terminate the components in the reverse order in sequentially... so I suspect there is some kind of race condition going on or leak of some sortAlso no issues if I use Tcp transport instead.
This is not a good description on how to reproduce the issue, because it is a bit random when it occurs. But wanted to create this issue if others have the same problem and will update the description if I have a isolated a good test