Skip to content

Commit

Permalink
Merge pull request #632 from dmitrmax/main
Browse files Browse the repository at this point in the history
[FIXED] Bytes accounting while reading the INFO protocol
  • Loading branch information
kozlovic authored Feb 1, 2023
2 parents b145175 + a4e945a commit 9305549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/comsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ natsSock_ReadLine(natsSockCtx *ctx, char *buffer, size_t maxBufferSize)
// This is a partial, we need to read more data until we get to
// the end of the line (\r\n).
p = (char*) (p + len);
totalBytes += len;
}
else
{
Expand Down

0 comments on commit 9305549

Please sign in to comment.