读书人

quot;nginx + jettyquot; - post上传body

发布时间: 2013-07-20 11:07:48 作者: rapoo

"nginx + jetty" - post上传body size的限制问题

protected void parseParameters() { ...... if (!("application/x-www-form-urlencoded".equals(contentType))) return; int len = getContentLength(); if (len > 0) { int maxPostSize = connector.getMaxPostSize(); // tomcat默认大小2*1024*1024 if ((maxPostSize > 0) && (len > maxPostSize)) { if (context.getLogger().isDebugEnabled()) { context.getLogger().debug( sm.getString("coyoteRequest.postTooLarge")); } return; // 内容超长则直接返回,jetty会抛出IllegalStateException //Parameters 对象没有内容 } ..... }

?

读书人网 >操作系统

热点推荐