Skip to content

Commit

Permalink
Update FAQ.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MRXLT committed Jun 10, 2020
1 parent 6ad85fe commit 81fe3fe
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions doc/FAQ.md
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"])
```

0 comments on commit 81fe3fe

Please sign in to comment.