diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/network/sock.h | |
parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
download | ydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/network/sock.h')
-rw-r--r-- | util/network/sock.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/network/sock.h b/util/network/sock.h index b10be2f715..53ddd4b61b 100644 --- a/util/network/sock.h +++ b/util/network/sock.h @@ -4,7 +4,7 @@ #include <util/system/defaults.h> #include <util/string/cast.h> #include <util/stream/output.h> -#include <util/system/sysstat.h> +#include <util/system/sysstat.h> #if defined(_win_) || defined(_cygwin_) #include <util/system/file.h> @@ -193,7 +193,7 @@ struct TSockAddrLocal: public sockaddr_un, public ISockAddr { if (ret < 0) return -errno; - ret = Chmod(sun_path, mode); + ret = Chmod(sun_path, mode); if (ret < 0) return -errno; return 0; @@ -365,7 +365,7 @@ public: static ssize_t Check(ssize_t ret, const char* op = "") { if (ret < 0) - ythrow TSystemError(-(int)ret) << "socket operation " << op; + ythrow TSystemError(-(int)ret) << "socket operation " << op; return ret; } }; @@ -461,7 +461,7 @@ public: s = accept((SOCKET) * this, nullptr, nullptr); } - if (s == INVALID_SOCKET) + if (s == INVALID_SOCKET) return -errno; TSocketHolder sock(s); @@ -569,7 +569,7 @@ protected: return (size_t)ret; } - ythrow TSystemError(-(int)ret) << "can not read from socket input stream"; + ythrow TSystemError(-(int)ret) << "can not read from socket input stream"; } }; @@ -597,7 +597,7 @@ protected: const ssize_t ret = Socket->Send(ptr, len); if (ret < 0) { - ythrow TSystemError(-(int)ret) << "can not write to socket output stream"; + ythrow TSystemError(-(int)ret) << "can not write to socket output stream"; } Y_ASSERT((size_t)ret <= len); |