Skip to content

Commit

Permalink
Close idle connections when ES client is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Apr 9, 2020
1 parent ade29ac commit f36d58d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libbeat/esleg/eslegclient/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func (conn *Connection) Ping() (string, error) {

// Close closes a connection.
func (conn *Connection) Close() error {
conn.HTTP.CloseIdleConnections()
return nil
}

Expand Down

0 comments on commit f36d58d

Please sign in to comment.