Skip to content

Commit

Permalink
Merge pull request yesodweb#915 from flipstone/install-shutdown-handl…
Browse files Browse the repository at this point in the history
…er-in-tls

Install settings shutdown handler for TLS servers
  • Loading branch information
Vlix authored Oct 2, 2023
2 parents e9024f0 + 2b48ca7 commit e6a8cfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions warp-tls/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## 3.4.3

* Install shutdown handlers passed via `Settings` to `run...` functions

## 3.4.1

* Requiring warp v3.3.29.
Expand Down
1 change: 1 addition & 0 deletions warp-tls/Network/Wai/Handler/WarpTLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ getSessionManager TLSSettings{..} = case tlsSessionManagerConfig of
-- specified 'Socket'.
runTLSSocket :: TLSSettings -> Settings -> Socket -> Application -> IO ()
runTLSSocket tlsset set sock app = do
settingsInstallShutdownHandler set (close sock)
credentials <- loadCredentials tlsset
mgr <- getSessionManager tlsset
runTLSSocket' tlsset set credentials mgr sock app
Expand Down
2 changes: 1 addition & 1 deletion warp-tls/warp-tls.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: warp-tls
Version: 3.4.2
Version: 3.4.3
Synopsis: HTTP over TLS support for Warp via the TLS package
License: MIT
License-file: LICENSE
Expand Down

0 comments on commit e6a8cfe

Please sign in to comment.