Skip to content

Commit

Permalink
[rb] Default http client use persistent connections (#7065)
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole authored Mar 29, 2019
1 parent 57555ac commit 7c9ca8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rb/lib/selenium/webdriver/remote/http/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def timeout=(value)
self.read_timeout = value
end

def close
@http&.finish
end

private

def http
Expand All @@ -64,7 +68,7 @@ def http
http.open_timeout = open_timeout
http.read_timeout = read_timeout if read_timeout

http
http.start
end
end

Expand Down

0 comments on commit 7c9ca8e

Please sign in to comment.