Update of /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2663
Modified Files:
RecordProtocol.cs
Log Message:
no message
Index: RecordProtocol.cs
===================================================================
RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/Mono.Security/Mono.Security/Mono.Security.Protocol.Tls/RecordProtocol.cs,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** RecordProtocol.cs 5 Feb 2005 14:08:14 -0000 1.25
--- RecordProtocol.cs 8 Feb 2005 21:17:20 -0000 1.26
***************
*** 85,88 ****
--- 85,96 ----
}
+ Thread.Sleep(1);
+
+ if (this.innerStream is NetworkStream &&
+ !((NetworkStream)this.innerStream).DataAvailable)
+ {
+ return null;
+ }
+
// Try to read the Record Content Type
int type = this.innerStream.ReadByte();
***************
*** 287,290 ****
--- 295,299 ----
int received = 0;
byte[] buffer = new byte[length];
+
while (received != length)
{
|