Skip to content

Commit

Permalink
Do not cancel context on Connection.Close (#40769)
Browse files Browse the repository at this point in the history
This commit removes a call to conn.cancelReqs() that causes the
Connection to be unusable after Close() is called, leading to the bug
described by #40705.
  • Loading branch information
belimawr authored Sep 11, 2024
1 parent e40a5fd commit b0e4f85
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libbeat/esleg/eslegclient/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,6 @@ func (conn *Connection) Ping() (ESPingData, error) {
// Close closes a connection.
func (conn *Connection) Close() error {
conn.HTTP.CloseIdleConnections()
conn.cancelReqs()
return nil
}

Expand Down

0 comments on commit b0e4f85

Please sign in to comment.