aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/socket.cpp
diff options
context:
space:
mode:
authorpppp <pppp@yandex-team.ru>2022-02-10 16:51:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:52 +0300
commitfcb328858da947c52819d89cea4a4357cc207ae4 (patch)
treeab7fbbf3253d4c0e2793218f09378908beb025fb /util/network/socket.cpp
parent2717b42639e035e1da0e7963a61d9fb71a3abcee (diff)
downloadydb-fcb328858da947c52819d89cea4a4357cc207ae4.tar.gz
Restoring authorship annotation for <pppp@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network/socket.cpp')
-rw-r--r--util/network/socket.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index aee4f67fba..4f6e804346 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -360,14 +360,14 @@ size_t GetMaximumSegmentSize(SOCKET s) {
return 8192;
}
-size_t GetMaximumTransferUnit(SOCKET /*s*/) {
- // for someone who'll dare to write it
- // Linux: there rummored to be IP_MTU getsockopt() request
- // FreeBSD: request to a socket of type PF_ROUTE
- // with peer address as a destination argument
- return 8192;
-}
-
+size_t GetMaximumTransferUnit(SOCKET /*s*/) {
+ // for someone who'll dare to write it
+ // Linux: there rummored to be IP_MTU getsockopt() request
+ // FreeBSD: request to a socket of type PF_ROUTE
+ // with peer address as a destination argument
+ return 8192;
+}
+
int GetSocketToS(SOCKET s) {
TOpaqueAddr addr;