Skip to content

Commit

Permalink
core: perform SSL shutdown for ssl socket
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Apr 8, 2024
1 parent 56b094f commit ac52be5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssl_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ std::size_t ssl_socket::read_line(std::string & buf, std::size_t max_size, boost

void ssl_socket::shutdown(boost::asio::ip::tcp::socket::shutdown_type type, boost::system::error_code & ec)
{
/* Careful: the non-SSL layer shutdown. */
socket_.lowest_layer().shutdown(type, ec);
/* Perform SSL shutdown, ignore the 'type' param. */
socket_.shutdown(ec);
}

void ssl_socket::close(boost::system::error_code & ec)
Expand Down

0 comments on commit ac52be5

Please sign in to comment.