apache / brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
https://brpc.apache.org
Apache License 2.0
16.05k stars 3.92k forks source link

Questions about idle_timeout_sec of server #2681

Open BiteTheDDDDt opened 3 days ago

BiteTheDDDDt commented 3 days ago

If the server side executes a rpc request for more than idle_timeout_sec, and the connection does not transmit any other rpc during this period, will the connection be closed in this case, causing the rpc request to fail? Does brpc have other mechanisms like keep alive to clean up unavailable connections instead of using idle_timeout_sec?

related issue: https://github.com/apache/brpc/issues/731

chenBright commented 1 day ago

In this case, the connection will be closed until all rpc requests are completed. Idle timeout mechanism only release the additional reference.