Skip to content

Commit

Permalink
Close underlying socket on dispose (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
johansme authored Aug 31, 2022
1 parent 1978cc1 commit f0c3de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Net/TcpTransport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public async Task ConnectAsync(Address address, ConnectionFactory factory, IHand
localCertificateSelectionCallback = ssl.LocalCertificateSelectionCallback;
}

SslStream sslStream = new SslStream(new NetworkStream(socket), false, remoteCertificateValidationCallback, localCertificateSelectionCallback);
SslStream sslStream = new SslStream(new NetworkStream(socket, true), false, remoteCertificateValidationCallback, localCertificateSelectionCallback);
if (handler != null && handler.CanHandle(EventId.SslAuthenticate))
{
handler.Handle(Event.Create(EventId.SslAuthenticate, connection, null, null, sslStream));
Expand Down

0 comments on commit f0c3de2

Please sign in to comment.