summaryrefslogtreecommitdiff
path: root/src/usage_text.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-11-28 14:01:24 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-11-28 14:12:23 +0900
commite8a9a366db7bf834a3e93c6ec05336e5aca882c4 (patch)
tree01a422d15502dac3a117a80df17781b482773015 /src/usage_text.h
parent699f04d0b8a93dd92a85f68cd8c307b5f3fb4741 (diff)
Add --socket-recv-buffer-size option
Set the maximum socket receive buffer in bytes. Specifing 0 will disable this option. This value will be set to socket file descriptor using SO_RCVBUF socket option with setsockopt() call. See GH-487 about the usecase of this option
Diffstat (limited to 'src/usage_text.h')
-rw-r--r--src/usage_text.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usage_text.h b/src/usage_text.h
index d595c233..9a4b93c3 100644
--- a/src/usage_text.h
+++ b/src/usage_text.h
@@ -1040,3 +1040,9 @@
" public key when SFTP is used. If this option is\n" \
" not set, which is default, no validation takes\n" \
" place.")
+#define TEXT_SOCKET_RECV_BUFFER_SIZE \
+ _(" --socket-recv-buffer-size=SIZE\n" \
+ " Set the maximum socket receive buffer in bytes.\n" \
+ " Specifing 0 will disable this option. This value\n" \
+ " will be set to socket file descriptor using\n" \
+ " SO_RCVBUF socket option with setsockopt() call.")