Skip to content

Commit

Permalink
Client: don't report ssl::error::stream_truncated from clients
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic committed Jul 31, 2018
1 parent ea7e56e commit b0bb4e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ void Client::State::serve_request( GenericConnection&& con
// Read the (clear-text) HTTP request
ASYNC_DEBUG(http::async_read(con, buffer, req, yield[ec]), "Read request");

if (ec == http::error::end_of_stream) break;
if ( ec == http::error::end_of_stream
|| ec == asio::ssl::error::stream_truncated) break;

if (ec) return fail(ec, "read");

// Requests in the encrypted channel are not proxy-like
Expand Down

0 comments on commit b0bb4e1

Please sign in to comment.