Skip to content

Commit

Permalink
Add log line on TlsTransport destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Oct 21, 2023
1 parent 4fe5339 commit c605f34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/impl/tlstransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProx

TlsTransport::~TlsTransport() {
stop();

PLOG_DEBUG << "Destroying TLS transport";
gnutls_deinit(mSession);
}

Expand Down Expand Up @@ -638,6 +640,8 @@ TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProx

TlsTransport::~TlsTransport() {
stop();

PLOG_DEBUG << "Destroying TLS transport";
SSL_free(mSsl);
SSL_CTX_free(mCtx);
}
Expand Down

0 comments on commit c605f34

Please sign in to comment.