Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一台服务器通过 TCP 将 FastAGI 请求发送到 Internet 中的另一台服务器。问题是 FastAGI 的默认超时时间很短,并且引发了以下错误。
如何在我的拨号方案中设置 FastAGI 超时?
FastAGI connection to 'agi://Myserver/agi' timed out after MAX_AGI_CONNECT (2000) milliseconds.
2 秒超时不是“很短”。我无法想象应用程序无法在 2 秒内回答的情况。很可能你对另一方有问题。
但是,如果您确定需要超过 2 秒的超时(如果您通过卫星链接在全球范围内上网 3 次),您可以在星号源中更改该超时并重新编译星号。
要获得确切的位置,您可以使用以下内容:
asterisk-1.8.11.1]# grep MAX_AGI_CONNECT * -rn|grep define res/res_agi.c:918:#define MAX_AGI_CONNECT 2000