tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44494] Requests greater than 8k being truncated.
Date Fri, 11 Apr 2008 04:26:04 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44494





--- Comment #45 from Suzuki Yuichiro <suzuki.yuichiro@jp.fujitsu.com>  2008-04-10 21:26:03
PST ---
Hi,

The behavior of the test case with default values is as follows. 

1. It posts 8192 multibytes characters.
2. The posted data is read up to 4096 characters.
   (And other information like the multipart-boundary characters
    and the Content-Disposition is read, too)
3. It checks whether the read data is correct or not.
4. They are repeated by retrying.

If "correct:false" is output by retrying,
perhaps there were garbage bytes of the multibyte character
in the buffer of the ReadConvertor object, after the previous request.

When the end of the read byte sequence is not complete
as the multibyte character, InputStreamReader seems to keep imperfect byte
sequence internally until the under-lying stream returns -1. 

And the imperfect byte sequence will be used as the start bytes
of the next request.

Please see the recycle method part of the attached patch.

Yuichiro


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message