Skip to content

Commit 7e30733

Browse files
authored
Merge pull request #105 from cnblogs/hotfix/readasync-concurrent-issue
Workaround for high concurrent PooledSocket.ReadAsync issue
2 parents 868e6d6 + 696a5bd commit 7e30733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Enyim.Caching/Memcached/PooledSocket.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public async Task ReadAsync(byte[] buffer, int offset, int count)
255255
{
256256
try
257257
{
258-
int currentRead = await this.inputStream.ReadAsync(buffer, offset, shouldRead);
258+
int currentRead = this.inputStream.Read(buffer, offset, shouldRead);
259259
if (currentRead < 1)
260260
continue;
261261

0 commit comments

Comments
 (0)