From 40a955e192cc221ea450b176fc340b72eee291fc Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 1 Oct 2014 06:27:51 -0700 Subject: [PATCH] Consume handshake data in HTTP/S server --- src/ripple/http/impl/Peer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ripple/http/impl/Peer.h b/src/ripple/http/impl/Peer.h index 5a7fa028a..a5d812209 100644 --- a/src/ripple/http/impl/Peer.h +++ b/src/ripple/http/impl/Peer.h @@ -342,6 +342,7 @@ SSLPeer::do_handshake (boost::asio::yield_context yield) socket_type::server, read_buf_.data(), yield[ec]); if (ec) return fail (ec, "handshake"); + read_buf_.consume (bytes_transferred); boost::asio::spawn (strand_, std::bind (&SSLPeer::do_read, shared_from_this(), std::placeholders::_1)); }