http2-tls 0.5.5 → 0.5.6
raw patch · 4 files changed
+186/−11 lines, 4 filesdep ~network-runPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: network-run
API changes (from Hackage documentation)
Files
- ChangeLog.md +174/−0
- Network/HTTP2/TLS/Client/Settings.hs +3/−3
- Network/HTTP2/TLS/Server/Settings.hs +2/−2
- http2-tls.cabal +7/−6
+ ChangeLog.md view
@@ -0,0 +1,174 @@+# Revision history for http2-tls+++## 0.5.6++* Requires network-run 0.7, whose accept loop is stopped by being told+ rather than by having the listening socket closed under it. Nothing+ here changes; the TCP server inherits it.+* The receive of a connection is still ended by the time manager killing+ the thread, which does not reach a socket call on Windows. Giving up+ on the receive instead needs a timeout which can be waited for in STM,+ which time-manager does not offer yet.++## 0.5.5++* Client: `settingsTimeout` is now the idle timeout of the connection,+ closing it with `ConnectionIsTimeout`. The default (0) means no+ timeout; a hidden 30-second timeout was applied before.+ [#26](https://github.com/kazu-yamamoto/http2-tls/pull/26)+* Using network-run v0.6 and time-manager v0.3.++## 0.5.4++* Don't eat an asynchronous exception.++## 0.5.3++* Using tls v2.3 and crypton-x509* v1.9.++## 0.5.2++* Using tls v2.2 and crypton-x509* v1.8.++## 0.5.1++* Using http2 v5.4.++## 0.5.0++* The signature of `runTLS` and `runTLSWithSocket` are changed to+ implement timeout properly.++## 0.4.9++* Making use of settingsCAStore again.++## 0.4.8++* settingsTimeout for clients.++## 0.4.7++* Cleaning up settings.+ [#25](https://github.com/kazu-yamamoto/http2-tls/pull/25)++## 0.4.6++* Supporting SSLKEYLOGFILE.++## 0.4.5++* Using newest packages.++## 0.4.4++* Stop using Data.Default.Class.++## 0.4.3++* `settingsNumberOfWorkers` is obsoleted.+* Removing `unliftio`.++## 0.4.2++* Catching up the new ServerIO.++## 0.4.1++* Make rate limits configurable+ [#20](https://github.com/kazu-yamamoto/http2-tls/pull/20)++## 0.4.0++* Expose client socket+ [#19](https://github.com/kazu-yamamoto/http2-tls/pull/19)+* Drop `settingsOpenServerSocket` because of network-run v0.4.0.+ [#17](https://github.com/kazu-yamamoto/http2-tls/pull/17)+* Adding `settingsOpenClientSocket`.+* New API: `runWishSocket`, etc, for servers.+* Drop support for older `tls`+ [#15](https://github.com/kazu-yamamoto/http2-tls/pull/13)++## 0.3.1++* Providing `settingsWantSessionResumeList`.++## 0.3.0++* Usuing network-run v0.3. This means that IPv6Only is set to sockets.++## 0.2.11++* Allowing time-manger v0.1++## 0.2.10++* Allowing http2 v5.2++## 0.2.9++* Using runTCPClient+ [#13](https://github.com/kazu-yamamoto/http2-tls/pull/13)++## 0.2.8++* Using the latest network-control.+* Implementing util/h2-client and util/h2-server.++## 0.2.7++* Compatibility with tls < 2.0+ [#11](https://github.com/kazu-yamamoto/http2-tls/pull/11)+* Defining `settingsEarlyDataSize`.++## 0.2.6++* Defining `settingsWantSessionResume` and `settingsUseEarlyData`.+* Introduce settingsOpenServerSocket.+ [#10](https://github.com/kazu-yamamoto/http2-tls/pull/10)++## 0.2.5++* Adding SessionManager to Settings.++## 0.2.4++* Allowing tls v2.0.++## 0.2.3++* Export `settingsServerNameOverride`+ [#9](https://github.com/kazu-yamamoto/http2-tls/pull/9)++## 0.2.2++* Reuse H2CLient.Authority+ [#8](https://github.com/kazu-yamamoto/http2-tls/pull/8)+* Using http2 v5.1++## 0.2.1++* Adding runIOH2C.+* Adding runWithConfig, runH2CWithConfig and runTLSWithConfig.+ [#6](https://github.com/kazu-yamamoto/http2-tls/pull/6)++## 0.2.0++* Adding `runIO`.+* Breaking change: `Client.runH2C` takes `Settings`.+* Adding `settingsNumberOfWorkers`, `settingsConcurrentStreams`, `settingsConnectionWindowSize` and `settingsStreamWindowSize` to `Server.Settings`.+* Adding `settingsCacheLimit`, `settingsConcurrentStreams`, `settingsConnectionWindowSize` and `settingsStreamWindowSize`` to `Client.Settings`.++## 0.1.0++* Breaking chaange: `run` takes `Settings` as an argument.+ [#2](https://github.com/kazu-yamamoto/http2-tls/pull/2)++## 0.0.1++* Supporting `tls` v1.8.0.++## 0.0.0++* First version.
Network/HTTP2/TLS/Client/Settings.hs view
@@ -59,7 +59,7 @@ , settingsCacheLimit :: Int -- ^ How many pushed responses are contained in the cache (H2 and H2c) --- -- >>> settingsCacheLimits defaultSettings+ -- >>> settingsCacheLimit defaultSettings -- 64 , settingsConcurrentStreams :: Int -- ^ The maximum number of incoming streams on the net (H2 and H2c)@@ -75,7 +75,7 @@ -- ^ The window size of a connection (H2 and H2c) -- -- >>> settingsConnectionWindowSize defaultSettings- -- 1048575+ -- 16777216 , settingsSessionManager :: SessionManager -- ^ TLS session manager (H2 and TLS) --@@ -121,7 +121,7 @@ , settingsRstRateLimit :: Int -- ^ Maximum number of reset frames allowed per second (CVE-2023-44487) --- -- >>> settingsRstRateLimit+ -- >>> settingsRstRateLimit defaultSettings -- 4 , settingsTimeout :: Int -- ^ Timeout in seconds. Non-positive values mean no timeout. (H2 and H2c)
Network/HTTP2/TLS/Server/Settings.hs view
@@ -54,7 +54,7 @@ -- ^ The window size of a connection (H2 and H2c) -- -- >>> settingsConnectionWindowSize defaultSettings- -- 1048575+ -- 16777216 , settingsSessionManager :: SessionManager -- ^ TLS session manager (H2 and TLS) --@@ -83,7 +83,7 @@ , settingsRstRateLimit :: Int -- ^ Maximum number of reset frames allowed per second (CVE-2023-44487) --- -- >>> settingsRstRateLimit+ -- >>> settingsRstRateLimit defaultSettings -- 4 }
http2-tls.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: http2-tls-version: 0.5.5+version: 0.5.6 license: BSD3 license-file: LICENSE maintainer: Kazu Yamamoto <kazu@iij.ad.jp>@@ -10,6 +10,7 @@ description: Using the HTTP/2 library over TLS category: Network build-type: Simple+extra-source-files: ChangeLog.md source-repository head type: git@@ -38,15 +39,15 @@ build-depends: base >=4.9 && <5, bytestring >=0.10,- crypton-x509-store >=1.9.0 && <1.10,- crypton-x509-system >=1.9.0 && <1.10,- crypton-x509-validation >=1.9 && <1.10,+ crypton-x509-store >=1.9.0 && <1.11,+ crypton-x509-system >=1.9.0 && <1.11,+ crypton-x509-validation >=1.9 && <1.11, http2 >=5.4 && <5.5, network >=3.1.4, network-control >=0.1 && <0.2,- network-run >=0.6 && <0.7,+ network-run >=0.7 && <0.8, recv >=0.1.0 && <0.2,- time-manager >=0.3 && <0.4,+ time-manager >=0.5 && <0.6, tls >=2.3.0 && <2.5, utf8-string >=1.0 && <1.1