希望支持timeout参数
Ehco1996 opened this issue · 7 comments
Ehco1996 commented
fzlee commented
requests库太大,有些地方加载费时。 是什么场景需要自定义超时时间?
On Sun, 6 Sep 2020 at 08:33, Ehco ***@***.***> wrote:
Assigned #114 <#114> to @fzlee
<https://github.com/fzlee>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#114 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOYLNMHFSYDRVX4D74JUVTSELKFFANCNFSM4Q3S4PAA>
.
--
顺颂时祺
Fazheng Li
Ehco1996 commented
主要是query_order的时候,服务起在国外的话,call阿里云的接口会经常timeout
fzlee commented
我感觉要是15s还没有返回,加大超时时间大概率也不会有结果。
你暂时试试直接修改我的源代码。超时时间延长,试试有没有效果,如果有的话,我再开放这个选项出来
On Sun, 6 Sep 2020 at 09:28, Ehco ***@***.***> wrote:
主要是query_order的时候,服务起在国外的话,call阿里云的接口会经常timeout
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOYLNI7GL3VIBM5HBO7GL3SELQVBANCNFSM4Q3S4PAA>
.
--
顺颂时祺
Fazheng Li
Ehco1996 commented
我感觉要是15s还没有返回,加大超时时间大概率也不会有结果。 你暂时试试直接修改我的源代码。超时时间延长,试试有没有效果,如果有的话,我再开放这个选项出来
On Sun, 6 Sep 2020 at 09:28, Ehco @.***> wrote: 主要是query_order的时候,服务起在国外的话,call阿里云的接口会经常timeout — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#114 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOYLNI7GL3VIBM5HBO7GL3SELQVBANCNFSM4Q3S4PAA . --
顺颂时祺 Fazheng Li
我是想调小timeout,这样可以多retry几次
fzlee commented
有道理,我最近会添加这个参数
On Sun, 6 Sep 2020 at 09:50, Ehco ***@***.***> wrote:
我感觉要是15s还没有返回,加大超时时间大概率也不会有结果。
你暂时试试直接修改我的源代码。超时时间延长,试试有没有效果,如果有的话,我再开放这个选项出来
On Sun, 6 Sep 2020 at 09:28, Ehco *@*.***> wrote:
主要是query_order的时候,服务起在国外的话,call阿里云的接口会经常timeout — You are receiving this
because you were mentioned. Reply to this email directly, view it on GitHub
<#114 (comment)
<#114 (comment)>>, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOYLNI7GL3VIBM5HBO7GL3SELQVBANCNFSM4Q3S4PAA
. --
顺颂时祺 Fazheng Li
我是想调小timeout,这样可以多retry几次
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#114 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOYLNMRONSWNPYYBGRBEH3SELTEZANCNFSM4Q3S4PAA>
.
--
顺颂时祺
Fazheng Li
fzlee commented
试试2.1.1 吧
from alipay.utils import AliPayConfig
config = AliPayConfig(timeout=5)
alipay = Alipay(... config=config)
Ehco1996 commented
感谢