diff --git a/lib/passwordstate/client.rb b/lib/passwordstate/client.rb
index 2fe9b2c212429f9ebd30a2d68b5847aaaba113a8..129cf40b24ed38ec51248908bd86f674f3c0dc01 100644
--- a/lib/passwordstate/client.rb
+++ b/lib/passwordstate/client.rb
@@ -32,6 +32,11 @@ module Passwordstate
       @api_type || (auth_data.key?(:apikey) ? :api : :winapi)
     end
 
+    def open_timeout=(sec)
+      @open_timeout = sec
+      @http.open_timeout = sec if @http
+    end
+
     def timeout=(sec)
       @timeout = sec
       @http.read_timeout = sec if @http