aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorpanin <panin@yandex-team.ru>2022-02-10 16:49:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:46 +0300
commitd29002717dd19ea9988bec31ca62afdc2c1d7062 (patch)
tree1936c5fe1ea75f39ae466205e9a6ddc5d72c052f /util
parent60a6df6d382906cd4ca6cd885920b3c20820170e (diff)
downloadydb-d29002717dd19ea9988bec31ca62afdc2c1d7062.tar.gz
Restoring authorship annotation for <panin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r--util/network/socket.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 4f6e804346..58c16f7cb1 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -920,14 +920,14 @@ TSocketOutput::~TSocketOutput() {
void TSocketOutput::DoWrite(const void* buf, size_t len) {
size_t send = 0;
- while (len) {
- const ssize_t ret = S_.Send(buf, len);
+ while (len) {
+ const ssize_t ret = S_.Send(buf, len);
- if (ret < 0) {
+ if (ret < 0) {
ythrow TSystemError(-(int)ret) << "can not write to socket output stream; " << send << " bytes already send";
- }
+ }
buf = (const char*)buf + ret;
- len -= ret;
+ len -= ret;
send += ret;
}
}