shadowsocks-libev: new option no_delay
--no-delay is a new cmdline argument introduced in 3.1.0 to NOT turn off TCP_NODELAY socket option, i.e. keeping it's default value without setting it explicitly. This can be potentially useful for interactive traffics Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
a6991e7962
commit
a1fadbde07
2 changed files with 3 additions and 1 deletions
|
@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
|
||||||
#
|
#
|
||||||
PKG_NAME:=shadowsocks-libev
|
PKG_NAME:=shadowsocks-libev
|
||||||
PKG_VERSION:=3.1.1
|
PKG_VERSION:=3.1.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION)
|
||||||
|
|
|
@ -115,6 +115,7 @@ ss_xxx() {
|
||||||
procd_open_instance "$cfgtype.$cfg"
|
procd_open_instance "$cfgtype.$cfg"
|
||||||
procd_set_param command "$bin" -c "$confjson"
|
procd_set_param command "$bin" -c "$confjson"
|
||||||
[ "$verbose" = 0 ] || procd_append_param command -v
|
[ "$verbose" = 0 ] || procd_append_param command -v
|
||||||
|
[ "$no_delay" = 0 ] || procd_append_param command --no-delay
|
||||||
[ -z "$bind_address" ] || procd_append_param command -b "$bind_address"
|
[ -z "$bind_address" ] || procd_append_param command -b "$bind_address"
|
||||||
[ -z "$manager_address" ] || procd_append_param command --manager-address "$manager_address"
|
[ -z "$manager_address" ] || procd_append_param command --manager-address "$manager_address"
|
||||||
procd_set_param file "$confjson"
|
procd_set_param file "$confjson"
|
||||||
|
@ -258,6 +259,7 @@ validate_common_options_() {
|
||||||
'disabled:bool:0' \
|
'disabled:bool:0' \
|
||||||
'fast_open:bool:0' \
|
'fast_open:bool:0' \
|
||||||
'ipv6_first:bool:0' \
|
'ipv6_first:bool:0' \
|
||||||
|
'no_delay:bool:0' \
|
||||||
'reuse_port:bool:0' \
|
'reuse_port:bool:0' \
|
||||||
'verbose:bool:0' \
|
'verbose:bool:0' \
|
||||||
'mode:or("tcp_only", "udp_only", "tcp_and_udp"):tcp_only' \
|
'mode:or("tcp_only", "udp_only", "tcp_and_udp"):tcp_only' \
|
||||||
|
|
Loading…
Reference in a new issue