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

Author: imRekerCreated Aug 20, 2021Updated Jun 17, 2026
Labelsbug

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?

Source: shadowsocks/shadowsocks-libev