mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Consume handshake data in HTTP/S server
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user