aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.cpp
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
commit93452ad7de84fbd34e7ba9a906bf10ce1536d722 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/network/socket.cpp
parentd29002717dd19ea9988bec31ca62afdc2c1d7062 (diff)
downloadydb-93452ad7de84fbd34e7ba9a906bf10ce1536d722.tar.gz
Restoring authorship annotation for <panin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/socket.cpp')
-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 58c16f7cb1..4f6e804346 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;
}
}