我在wso2 api管理器中创建了几个api。我的后端服务有时会在5-8秒内响应,或者最多需要50秒。wso2 apis的默认超时是什么?我检查了这个文件-passthru http.properties。它的内容如下:
## This file contains the configuration parameters used by the Pass-through HTTP transport
## Nhttp tuning parameters
#http.socket.timeout=60000
#http.connection.timeout=0
#http.socket.buffer-size=8192
#http.socket.linger=-1
#http.nio.select-interval=1000
#http.tcp.nodelay=true
#http.connection.stalecheck=false
#http.socket.reuseaddr=false如果我取消注释这一行- http.socket.timeout=60000,默认超时会变成60秒吗?
如果我把暂停时间增加到60秒,它们会对性能产生重大影响吗?
提前感谢!
发布于 2016-06-03 06:09:36
有一篇文章显示了为增加APIM中的超时所需编辑的内容。
如何增加超时
如果后端服务需要很长时间,那么最好先检查它们并对它们进行一些改进。
https://stackoverflow.com/questions/37570561
复制相似问题