Skip to content

Commit c9de0f4

Browse files
author
Roberto Garcia
committed
Bug #20393654 SOCKETS STAY IN CLOSE_WAIT WHEN USING SSL
Changed leaveInnerStreamOpen to false in the SslStream to close the socket when disposing.
1 parent fcb0843 commit c9de0f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
6.9.11
2+
- Fix for sockets stay in CLOSE_WAIT when using SSL (MySQL Bug #75022, Oracle Bug #20393654).
3+
4+
15
6.9.10
26
- Added user contribution in bug MySql.Web.Security.CreateUserInUserTable does not work (MySQL Bug #83656, Oracle Bug # 25046364).
37
- Fixed incorrect encoding in connection passwords (MySQL Bug #80611, Oracle Bug #23257011).

Source/MySql.Data/NativeDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2004, 2016, Oracle and/or its affiliates. All rights reserved.
1+
// Copyright © 2004, 2017 Oracle and/or its affiliates. All rights reserved.
22
//
33
// MySQL Connector/NET is licensed under the terms of the GPLv2
44
// <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -380,7 +380,7 @@ private void StartSSL()
380380
{
381381
RemoteCertificateValidationCallback sslValidateCallback =
382382
new RemoteCertificateValidationCallback(ServerCheckValidation);
383-
SslStream ss = new SslStream(baseStream, true, sslValidateCallback, null);
383+
SslStream ss = new SslStream(baseStream, false, sslValidateCallback, null);
384384
X509CertificateCollection certs = GetClientCertificates();
385385
SslProtocols sslProtocols = SslProtocols.Tls;
386386
#if NET_45_OR_GREATER

0 commit comments

Comments
 (0)