1 Reply Latest reply on Jan 4, 2005 2:05 PM by tomdee

    JBoss 3.2.6 + embedded TC truncates a HTTP PUT

    tomdee Newbie

      Env: JBoss 3.2.6 with default TC 5 jboss web
      OS : Win2K Server
      JDK: Sun 1.4.2_06-b03

      when a client performs a HTTP PUT of 141 bytes , at the servlet level
      i am only able to read 137 bytes out of the InputStream

      below is a snippet of code.

      InputStream is = req.getInputStream();
      byte[] buf = new byte[1024];
      int readBytes = 0;
      int totalBytes = 0;
      while ( (readBytes= is.read(buf)) != -1) {
      totalBytes += readBytes;
      }
      is.close();
      System.out.println( "bytes read " + totalBytes );