CoyoteInputStream读取方法返回0

时间:2014-11-20 13:11:32

标签: java apache tomcat

我部署了我的web应用程序,它在tomcat 6中暴露了一些休息服务,但有时在生产中当应用程序试图从输入流中读取POST类型webservice时,输入流返回0,输入流是CoyoteInputSream类型,请检查我用来从输入流中读取的代码部分,

下面的输入是容器提供的CoyoteInputStream类型。 .
n = input.read(buffer); // sometimes n is zero. .

0 个答案:

没有答案