Skip to content

Commit f5ca564

Browse files
committed
Output text fix.
1 parent 405a191 commit f5ca564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Quick.Protocol/QpChannel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public void SendCommandResponsePackage(string commandId, byte code, string messa
519519
private async Task<int> readData(Stream stream, byte[] buffer, int startIndex, int totalCount, CancellationToken cancellationToken)
520520
{
521521
if (totalCount > buffer.Length - startIndex)
522-
throw new IOException($"要接收的数据大小[{totalCount}]超出了缓存的大小[{buffer.Length - startIndex}]");
522+
throw new IOException($"Recv data length[{totalCount}] bigger than buffer length[{buffer.Length - startIndex}]");
523523
int ret;
524524
var count = 0;
525525
while (count < totalCount)
@@ -529,7 +529,7 @@ private async Task<int> readData(Stream stream, byte[] buffer, int startIndex, i
529529
if (readTask.IsCanceled || ret == 0)
530530
break;
531531
if (ret < 0)
532-
throw new IOException("从网络流中读取错误!");
532+
throw new IOException("Read error from stream.");
533533
count += ret;
534534
}
535535
return count;

0 commit comments

Comments
 (0)