Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch unnecessary readtmsAllowClose call to readtms(.., false)
Browse files Browse the repository at this point in the history
jakesmith committed Jul 23, 2024
1 parent c2da024 commit f96e1d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/dafsserver/dafsserver.cpp
Original file line number Diff line number Diff line change
@@ -2942,8 +2942,7 @@ class CRemoteFileServer : implements IRemoteFileServer, public CInterface
if (0 == msg.length()) // 1st time
msgWritePtr = (byte *)msg.reserveTruncate(sizeof(size32_t));
size32_t szRead;
if (readtmsAllowClose(sock, msgWritePtr, 0, sizeof(size32_t)-left, szRead, WAIT_FOREVER))
THROWJSOCKEXCEPTION(JSOCKERR_graceful_close);
sock->read(msgWritePtr, 0, sizeof(size32_t)-left, szRead, WAIT_FOREVER, false);

left += szRead;
msgWritePtr += szRead;

0 comments on commit f96e1d9

Please sign in to comment.