Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/apiserver/http_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ func TestTLSServerSelfSignedWithClientAuth(t *testing.T) {
pem.Encode(publicKeyFile, &pem.Block{Type: "CERTIFICATE", Bytes: derBytes})

// Start up a listener configured for TLS Mutual auth
config.Reset() // ensure APIShutdownTimeout cleared from earlier tests
cp := config.NewPluginConfig("ut")
initHTTPConfPrefx(cp, 0)
cp.Set(HTTPConfAddress, "127.0.0.1")
Expand Down
4 changes: 2 additions & 2 deletions pkg/wsclient/wsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ func (w *wsClient) receiveReconnectLoop() {
// Synchronously invoke the reader, as it's important we react immediately to any error there.
w.readLoop()
close(receiverDone)
<-w.sendDone

// Ensure the connection is closed after the receiver exits
// Ensure the connection is closed after the sender and receivers exit
err = w.wsconn.Close()
if err != nil {
l.Debugf("WS %s close failed: %s", w.url, err)
}
<-w.sendDone
w.sendDone = nil
w.wsconn = nil
}
Expand Down