shadowsocks-libev
shadowsocks-libev copied to clipboard
Bug or design on the '-t' param of the ss-server
In the document of ss-server:
-t <timeout> Set the socket timeout in seconds. The default value is 60.
But, in the code:
int timeout = max(MIN_TCP_IDLE_TIMEOUT, server->listen_ctx->timeout);
MIN_TCP_IDLE_TIMEOUT
is hard coded to 24 hours, and max
makes any timeout param smaller than 24 hours become meaningless.
Is it a bug or design?