add changelog. fix test comment.

This commit is contained in:
fakeshadow 2021-12-02 19:12:05 +08:00
parent 82afa83100
commit 81467282db
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,11 @@
# Changes
## Unreleased - 2021-xx-xx
### Added
* Add timeout for canceling HTTP/2 server side connection handshake. Default to 5 seconds. [#2483]
* HTTP/2 handshake timeout can be configured with `ServiceConfig::client_timeout`. [#2483]
[#2483]: https://github.com/actix/actix-web/pull/2483
## 3.0.0-beta.14 - 2021-11-30
### Changed

View File

@ -93,7 +93,7 @@ async fn h2_handshake_timeout() -> io::Result<()> {
.listen("h2_ping_pong", lst, || {
HttpService::build()
.keep_alive(30)
// set first request timeout to 3 seconds.
// set first request timeout to 5 seconds.
// this is the timeout used for http2 handshake.
.client_timeout(5000)
.h2(|_| async { Ok::<_, Error>(Response::ok()) })