how to configure Grizzly Server's maxPostSize

夙愿已清 提交于 2019-12-11 00:25:38

问题


I am hitting an error on Grizzly Server :

org.glassfish.grizzly.http.HttpCodecFilter handleRead
FINE: Error parsing HTTP header
java.lang.IllegalStateException: HTTP packet header is too large
    at org.glassfish.grizzly.http.HttpCodecFilter$HeaderParsingState.checkOverflow(HttpCodecFilter.java:1904)
    at org.glassfish.grizzly.http.HttpCodecFilter.decodeHttpPacketFromBytes(HttpCodecFilter.java:662)

After a little debugging using the above message HTTP packet header is too large was the reason for failure. The header size that I was using was more than the default 4k size.

Found this from the link.

The link also suggests changing the maxPostSize parameter to higher numbers. How can I configure this parameter to higher numbers? I am not finding good help on the web for this.

来源:https://stackoverflow.com/questions/35393910/how-to-configure-grizzly-servers-maxpostsize

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!