-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
# FAQ | ||
|
||
- Q:如何调整RPC服务的等待时间,避免超时? | ||
A:使用set_rpc_timeout_ms设置更长的等待时间,单位为毫秒,默认时间为20秒 | ||
示例: | ||
``` | ||
from paddle_serving_client import Client | ||
|
||
client = Client() | ||
client.load_client_config(sys.argv[1]) | ||
client.set_rpc_timeout_ms(100000) | ||
client.connect(["127.0.0.1:9393"]) | ||
``` | ||
A:使用set_rpc_timeout_ms设置更长的等待时间,单位为毫秒,默认时间为20秒。 | ||
|
||
示例: | ||
``` | ||
from paddle_serving_client import Client | ||
client = Client() | ||
client.load_client_config(sys.argv[1]) | ||
client.set_rpc_timeout_ms(100000) | ||
client.connect(["127.0.0.1:9393"]) | ||
``` |