Hi every body,
 
   As you know, ServletInputStream.available() always returns 0. I don't know if this issue has been fixed or not, so I propose a fix for that Simple and really quick to code, since we just have to reach the underlying BufferedInputStream :
 
 
On org.apache.tomcat.core.BufferedServletInputStream, add:
 
public int available() throws IOException{
      return reqA.available();
}
 
On org.apache.tomcat.core.RequestImpl, add
 
public int available() throws java.io.IOException{
   // default
    return 0;
}
   
On HttpRequestAdapter (sin is the underlying BufferedInputStream), add
 
public int available() throws IOException {
     return sin.available();
}
 
 
Christophe Marton
 
 
 

Reply via email to