-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from aishek/add-timeout-options
add http timeout options
- Loading branch information
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,10 @@ post "/push" do | |
subject: "mailto:[email protected]", | ||
public_key: ENV['VAPID_PUBLIC_KEY'], | ||
private_key: ENV['VAPID_PRIVATE_KEY'] | ||
} | ||
}, | ||
ssl_timeout: 5, # value for Net::HTTP#ssl_timeout=, optional | ||
open_timeout: 5, # value for Net::HTTP#open_timeout=, optional | ||
read_timeout: 5 # value for Net::HTTP#read_timeout=, optional | ||
) | ||
end | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters