File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ revers_proxy_options set global options for all reverse proxies. Available optio
35
35
* :username username for basic auth
36
36
* :password password for basic auth
37
37
* :matching is a global only option, if set to :first the first matched url will be requested (no ambigous error). Default: :all.
38
+ * :timeout seconds to timout the requests
38
39
== Note on Patches/Pull Requests
39
40
40
41
* Fork the project.
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def call(env)
28
28
session = Net ::HTTP . new ( uri . host , uri . port )
29
29
session . use_ssl = ( uri . scheme == 'https' )
30
30
session . verify_mode = OpenSSL ::SSL ::VERIFY_NONE
31
+ session . read_timeout = all_opts [ :timeout ] if all_opts [ :timeout ]
31
32
session . start { |http |
32
33
m = rackreq . request_method
33
34
case m
You can’t perform that action at this time.
0 commit comments