tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David kerber <dcker...@verizon.net>
Subject Re: Peformance on socket reads
Date Fri, 15 May 2009 18:28:28 GMT
David kerber wrote:
> Christopher Schultz wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> David,
>>
>> On 5/14/2009 8:34 AM, David kerber wrote:
>>  
>>>   len = req.getContentLength();
>>>   b = new byte[ len ];
>>>     
>>
>> Don't forget to check to see if getContentLength() returned zero.
>>   
> I do, it's just not in that code snippet.
>> What is the content-type here? Is it application/x-www-form-urlencoded?
>> Are you calling req.getParameter() or any of the same family of
>> functions? If both of those are true, then Tomcat has already read the
>> body of the request, and you won't be able to re-read it.
>>   
> I don't recall the content-type off the top of my head (and I don't 
> have the source of the sending app at hand), and I don't use 
> req.getParameter() at all.  But the code works; it just seems to be a 
> little slow.
The content-type is application/binary.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message