Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix graceful shutdown for Http(1|2)Builder
Because `Http1Builder::serve_connection` and `Http2Builder::serve_connection` didn't return `Connection` it was impossible to use them in combination with `Connection::graceful_shutdown`. By returning the Connection future rather than awaiting it, this becomes possible.
- Loading branch information