hyper-util icon indicating copy to clipboard operation
hyper-util copied to clipboard

Fix graceful shutdown for Http(1|2)Builder

Open k0nserv opened this issue 1 year ago • 0 comments

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.

k0nserv avatar Jan 16 '24 17:01 k0nserv