增加HTTP连接超时-Wildfly 10

到服务器的HTTP请求在1分钟后失败,因此我尝试将'no-request-timeout'设置为180000,期望服务器将保持连接3分钟,但它似乎无法正常工作。有人可以建议我想念什么吗? 目前,我在日志中看到以下错误

Caused by: java.io.IOException: Connection reset by peer
    at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
    at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
    at sun.nio.ch.IOUtil.write(IOUtil.java:148)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504)
    at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:161)
    at io.undertow.conduits.BytesSentStreamSinkConduit.write(BytesSentStreamSinkConduit.java:70)
    at io.undertow.server.protocol.http.HttpResponseConduit.processWrite(HttpResponseConduit.java:254)
    at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:625)
    at io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:163)
    at io.undertow.conduits.ChunkedStreamSinkConduit.write(ChunkedStreamSinkConduit.java:127)
    at io.undertow.conduits.ChunkedStreamSinkConduit.write(ChunkedStreamSinkConduit.java:216)
    at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:158)
    at io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:179)
    at io.undertow.server.HttpServerExchange$WriteDispatchChannel.write(HttpServerExchange.java:1965)
    at org.xnio.channels.Channels.writeBlocking(Channels.java:152)
    at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:184)
    at io.undertow.servlet.spec.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:128)
    at org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper$DeferredOutputStream.write(HttpServletResponseWrapper.java:40)
    at org.jboss.resteasy.util.CommitHeaderOutputStream.write(CommitHeaderOutputStream.java:64)
    at org.jboss.resteasy.plugins.providers.ByteArrayProvider.writeTo(ByteArrayProvider.java:50)

qayin123 回答:增加HTTP连接超时-Wildfly 10

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3069870.html

大家都在问