我在用Mule-4。我提出了一个呼叫服务的请求。这项服务通过Nginx。
我的服务回答200,ok,但Nginx回答499,这意味着客户端正在关闭连接。
在Mulesoft中,我试图将所有超时时间都设置得非常高(360000000),但Mulesoft仍在关闭连接。
<http:request-config name="HTTPS_Request_configuration_Secure" responseTimeout="360000000" doc:name="HTTP Request configuration" doc:id="......." basePath="${implementation.path}" requestStreamingMode="NEVER">
<http:request-connection protocol="HTTPS" host="${implementation.host}" port="${implementation.port}" tlsContext="TLS_Context" connectionIdleTimeout="360000000" responseBufferSize="2048"><expiration-policy maxIdleTime="3600000" timeUnit="MINUTES" /><flow name="my_flow" doc:id="...." >
<logger level="INFO" doc:name="Logger" doc:id="............." message=" "/>
<http:request method="PUT" doc:name="Request" doc:id=".............." config-ref="HTTPS_Request_configuration_Secure" path="/mytest" requestStreamingMode="NEVER" responseTimeout="360000000">
......
</http:request>
</flow>我不确定是Mulesoft的错还是Nginx.
我试图使用postman和python的请求库调用相同的后端(即延迟200秒的程序),我没有任何问题(Nginx响应返回200状态代码)。我不确定Mulesoft是否有一种不同的方式来调用该服务,并做出一些导致Nginx的499状态代码的事情,或者我是否必须更改Mulesoft的另一个参数以避免它关闭连接。不少于50秒的服务使用Mulesoft进行得很好。
发布于 2019-11-14 23:46:34
如果您使用的是Cloudhub,那么就有5分钟的困难超时时间。
https://stackoverflow.com/questions/58839352
复制相似问题