NutzCN Logo
问答 Error parsing HTTP request header header缓冲区大小不够
发布于 2139天前 作者 growdai 9419 次浏览 复制 上一个帖子 下一个帖子
标签:

header缓冲区大小不够?怎么加呢?

16:27:12.731 [http-nio-8290-exec-10] DEBUG org.apache.coyote.http11.Http11NioProtocol - Found processor [null] for socket [org.apache.tomcat.util.net.NioChannel@3a73db2e:java.nio.channels.SocketChannel[connected local=/192.168.10.47:8290 remote=/192.168.10.189:62053]]
16:27:12.731 [http-nio-8290-exec-10] DEBUG org.apache.coyote.http11.Http11NioProtocol - Popped processor [org.apache.coyote.http11.Http11Processor@1d51366c] from cache
16:27:12.731 [http-nio-8290-exec-10] DEBUG org.apache.tomcat.util.net.SocketWrapperBase - Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@10d332b:org.apache.tomcat.util.net.NioChannel@3a73db2e:java.nio.channels.SocketChannel[connected local=/192.168.10.47:8290 remote=/192.168.10.189:62053]], Read from buffer: [0]
16:27:12.731 [http-nio-8290-exec-10] DEBUG org.apache.coyote.http11.Http11Processor - Error parsing HTTP request header
java.io.EOFException: null
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.fillReadBuffer(NioEndpoint.java:1289)
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read(NioEndpoint.java:1223)
at org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:729)
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:368)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:684)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

6 回复

先说说发生了什么嘛

就是每次接口请求的时候会出现这个错误,但是也不影响接口返回

tomcat版本问题吧, 升级一下

打jar发的,<tomcat.version>8.5.31</tomcat.version> tomcat版本是8.5.31
这个也不低呀

额, nutzboot吗? 你在header里面塞了很多东西? 需要设置一下maxHttpHeaderSize了

tomcat.connector.maxHttpHeaderSize=102400000

nutzboot最新版支持

我就是想问这个,怎么加这个size。。多谢了

添加回复
请先登陆
回到顶部