diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2004-07-14 20:44:03 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2004-07-14 20:44:03 +0400 |
commit | 6c82eac5aee3fbbe948c76dfe9e2119541e2fa67 (patch) | |
tree | 09117c31c8c63b7f1e2fb0a5e363763cc8a53e35 | |
parent | 05e5cb2cbfc92ee30599f07f5558990b2851a7a3 (diff) |
2004-07-14 Sebastien Pouliot <sebastien@ximian.com>
* SslClientStream.cs: Changed lock to "new object()" and not
String.Empty (as the read/write locks points becomes the same).
* SslServerStream.cs: Changed lock to "new object()" and not
String.Empty (as the read/write locks points becomes the same).
svn path=/branches/mono-1-0/mcs/; revision=31152
3 files changed, 12 insertions, 5 deletions
diff --git a/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ChangeLog b/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ChangeLog index 465b03715b7..a5a20358101 100644 --- a/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ChangeLog +++ b/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/ChangeLog @@ -1,3 +1,10 @@ +2004-07-14 Sebastien Pouliot <sebastien@ximian.com> + + * SslClientStream.cs: Changed lock to "new object()" and not + String.Empty (as the read/write locks points becomes the same). + * SslServerStream.cs: Changed lock to "new object()" and not + String.Empty (as the read/write locks points becomes the same). + 2004-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com> * HttpsClientStream.cs: get an HttpWebRequest so that we can use the diff --git a/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs b/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs index 068a24f68c7..fccfb9902b3 100644 --- a/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs +++ b/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslClientStream.cs @@ -349,8 +349,8 @@ namespace Mono.Security.Protocol.Tls this.inputBuffer = new BufferedStream(new MemoryStream()); this.innerStream = stream; this.ownsStream = ownsStream; - this.read = String.Empty; - this.write = String.Empty; + this.read = new object (); + this.write = new object (); this.protocol = new ClientRecordProtocol(innerStream, context); } @@ -821,4 +821,4 @@ namespace Mono.Security.Protocol.Tls #endregion } -}
\ No newline at end of file +} diff --git a/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs b/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs index 53b3d095def..f2786f7554b 100644 --- a/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs +++ b/mcs/class/Mono.Security/Mono.Security.Protocol.Tls/SslServerStream.cs @@ -306,8 +306,8 @@ namespace Mono.Security.Protocol.Tls this.inputBuffer = new BufferedStream(new MemoryStream()); this.innerStream = stream; this.ownsStream = ownsStream; - this.read = String.Empty; - this.write = String.Empty; + this.read = new object (); + this.write = new object (); this.protocol = new ServerRecordProtocol(innerStream, context); } |