Skip to content

Commit

Permalink
Merge pull request #3660 from FAlbertDev/fix/tls-http-alert-handling
Browse files Browse the repository at this point in the history
Fix: TLS HTTP server alert handling
  • Loading branch information
reneme committed Aug 10, 2023
2 parents 897f107 + fcc1191 commit ee20e4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/tls_http_server.cpp
Expand Up @@ -242,6 +242,9 @@ class TLS_Asio_HTTP_Session final : public std::enable_shared_from_this<TLS_Asio
log_exception("TLS connection failed", e);
return stop();
}
if(m_tls->is_closed_for_reading()) {
return stop();
}

m_client_socket.async_read_some(boost::asio::buffer(&m_c2s[0], m_c2s.size()),
m_strand.wrap(boost::bind(&TLS_Asio_HTTP_Session::client_read,
Expand Down

0 comments on commit ee20e4a

Please sign in to comment.