开发者社区> 问答> 正文

webbit怎么进行超时设置?报错

@yshaojie 你好,想跟你请教个问题:

<p style="font-size:13.3333330154419px;">
	少杰,webbit怎么进行超时设置啊,就是加长超时的时间。在查一个数据量较大的sql时总是报错 org.webbitserver.WebbitException: java.net.SocketTimeoutException: Read timeout on [id: 0x0e28abb7, /127.0.0.1:60498 => /127.0.0.1:8080]
</p>
<p style="font-size:13.3333330154419px;">
	网上查了好多种方法都不行,项目是你以前做的 smc-analyze
</p>
<p style="font-size:13.3333330154419px;">
	<br>
</p>
<p style="font-size:13.3333330154419px;">
	<strong>具体错误:</strong>
</p>
<p style="font-size:13.3333330154419px;">
	Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timeout<br>

at io.airlift.http.client.StringResponseHandler.handleException(StringResponseHandler.java:49)
at io.airlift.http.client.StringResponseHandler.handleException(StringResponseHandler.java:31)
at io.airlift.http.client.netty.NettyResponseFuture.failed(NettyResponseFuture.java:99)
at io.airlift.http.client.netty.NettyHttpResponseChannelHandler.handleException(NettyHttpResponseChannelHandler.java:84)
at io.airlift.http.client.netty.NettyHttpResponseChannelHandler.exceptionCaught(NettyHttpResponseChannelHandler.java:62)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:112)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
... 3 more
Caused by: java.net.SocketTimeoutException: Read timeout
at io.airlift.http.client.netty.NettyHttpResponseChannelHandler.handleException(NettyHttpResponseChannelHandler.java:77)
... 10 more
Caused by: org.jboss.netty.handler.timeout.ReadTimeoutException
at org.jboss.netty.handler.timeout.ReadTimeoutHandler.<clinit>(ReadTimeoutHandler.java:84)
at io.airlift.http.client.netty.HttpClientPipelineFactory.<init>(HttpClientPipelineFactory.java:42)
at io.airlift.http.client.netty.NettyAsyncHttpClient.<init>(NettyAsyncHttpClient.java:95)
at io.airlift.http.client.netty.StandaloneNettyAsyncHttpClient.<init>(StandaloneNettyAsyncHttpClient.java:32)
at io.airlift.http.client.netty.StandaloneNettyAsyncHttpClient.<init>(StandaloneNettyAsyncHttpClient.java:22)
at io.airlift.http.client.netty.StandaloneNettyAsyncHttpClient.<init>(StandaloneNettyAsyncHttpClient.java:18)
at com.sohu.smc.analyze.utils.AirliftHttpUtil.<clinit>(AirliftHttpUtil.java:31)


展开
收起
爱吃鱼的程序员 2020-06-14 16:54:46 629 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个应该是httpclient设置的超时吧,你是?

    2020-06-14 16:55:04
    赞同 展开评论 打赏
问答分类:
SQL
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载