Skip to content

Commit

Permalink
[XrdCl] Fix regression in partial read resp handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Apr 1, 2021
1 parent d7f3406 commit 20342cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdCl/XrdClXRootDMsgHandler.cc
Expand Up @@ -1035,7 +1035,7 @@ namespace XrdCl
//--------------------------------------------------------------------------
// Update read state
//--------------------------------------------------------------------------
if( pAsyncOffset == pAsyncReadSize ) // the chunk is full
if( pAsyncOffset == (*pChunkList)[pAsyncChunkIndex].length ) // the chunk is full
{
++pAsyncChunkIndex; // move to next buffer
pReadRawStarted = false; // indicated we need a new buffer
Expand All @@ -1044,6 +1044,7 @@ namespace XrdCl
bytesleft -= pAsyncReadSize; // update number of bytes left to be read
}

pReadRawCurrentOffset = 0;
return XRootDStatus();
}

Expand Down

0 comments on commit 20342cf

Please sign in to comment.