我想了解 read-timeout
的功能在 JBoss/WildFly 服务器上运行的 Web 应用程序中。
以下是在standalone.xml 文件中进行的更改:
<http-listener name="default" socket-binding="http" redirect-socket="https" read-timeout="20000"/>
另外,如果没有明确提及,该属性的默认值是多少?
最佳答案
Configure a read timeout for a socket, in milliseconds. If the given amount of time elapses without a successful read taking place, the socket's next read will throw a {@link ReadTimeoutException}.
它还说它是可空的,所以我不知道如果为空,wildfly 的行为如何。
关于java - 读取超时属性有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50816696/