[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [JBoss-user] [HTTPD, Servlets & JSP] - JBoss 3.2.6 + embedded TC truncates a HTTP PUT
From:       toadie <nukes () jboss ! org>
Date:       2004-12-30 20:20:45
Message-ID: 11152343.1104438045920.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]

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 );



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860231#3860231

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860231


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic