hyper-util
hyper-util copied to clipboard
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.