aboutsummaryrefslogtreecommitdiffstats
path: root/util/network
diff options
context:
space:
mode:
authorsobols <sobols@yandex-team.ru>2022-02-10 16:47:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:08 +0300
commit03335cb18337a0ef51966452a66a69b01abea218 (patch)
treeb83306b6e37edeea782e9eed673d89286c4fef35 /util/network
parent09961b69c61f471ddd594e0fd877df62a8021562 (diff)
downloadydb-03335cb18337a0ef51966452a66a69b01abea218.tar.gz
Restoring authorship annotation for <sobols@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network')
-rw-r--r--util/network/socket.cpp18
-rw-r--r--util/network/socket.h2
2 files changed, 10 insertions, 10 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 15a663c524..4f6e804346 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -423,15 +423,15 @@ void SetSocketToS(SOCKET s, int tos) {
SetSocketToS(s, &addr, tos);
}
-void SetSocketPriority(SOCKET s, int priority) {
-#if defined(SO_PRIORITY)
- CheckedSetSockOpt(s, SOL_SOCKET, SO_PRIORITY, priority, "priority");
-#else
- Y_UNUSED(s);
- Y_UNUSED(priority);
-#endif
-}
-
+void SetSocketPriority(SOCKET s, int priority) {
+#if defined(SO_PRIORITY)
+ CheckedSetSockOpt(s, SOL_SOCKET, SO_PRIORITY, priority, "priority");
+#else
+ Y_UNUSED(s);
+ Y_UNUSED(priority);
+#endif
+}
+
bool HasLocalAddress(SOCKET socket) {
TOpaqueAddr localAddr;
if (getsockname(socket, localAddr.MutableAddr(), localAddr.LenPtr()) != 0) {
diff --git a/util/network/socket.h b/util/network/socket.h
index b4690bebe1..40c8648b40 100644
--- a/util/network/socket.h
+++ b/util/network/socket.h
@@ -116,7 +116,7 @@ void SetSocketToS(SOCKET s, int tos);
void SetSocketToS(SOCKET s, const NAddr::IRemoteAddr* addr, int tos);
int GetSocketToS(SOCKET s);
int GetSocketToS(SOCKET s, const NAddr::IRemoteAddr* addr);
-void SetSocketPriority(SOCKET s, int priority);
+void SetSocketPriority(SOCKET s, int priority);
void SetTcpFastOpen(SOCKET s, int qlen);
/**
* Deprecated, consider using HasSocketDataToRead instead.