Skip to content

feat(lib): add support to disable tokio-proto internals#1362

Merged
seanmonstar merged 2 commits into
masterfrom
unproto
Oct 27, 2017
Merged

feat(lib): add support to disable tokio-proto internals#1362
seanmonstar merged 2 commits into
masterfrom
unproto

Conversation

@seanmonstar
Copy link
Copy Markdown
Member

For now, this adds client::Config::no_proto, server::Http::no_proto,
and server::Server::no_proto to skip tokio-proto implementations, and
use an internal dispatch system instead.

Http::no_proto is similar to Http::bind_connection, but returns a
Connection that is a Future to drive HTTP with the provided service.
Any errors prior to parsing a request, and after delivering a response
(but before flush the response body) will be returned from this future.

See #1342 for more.

Test included that shows no_proto with the Client fixes #1353.

For now, this adds `client::Config::no_proto`, `server::Http::no_proto`,
and `server::Server::no_proto` to skip tokio-proto implementations, and
use an internal dispatch system instead.

`Http::no_proto` is similar to `Http::bind_connection`, but returns a
`Connection` that is a `Future` to drive HTTP with the provided service.
Any errors prior to parsing a request, and after delivering a response
(but before flush the response body) will be returned from this future.

See #1342 for more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not reading the entire response body leaks the connection on the client side

1 participant