shadowsocks-libev icon indicating copy to clipboard operation
shadowsocks-libev copied to clipboard

Bug or design on the '-t' param of the ss-server

Open imReker opened this issue 3 years ago • 2 comments

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?

imReker avatar Aug 20 '21 04:08 imReker