2011/9/17 Rainer Jung <rainer.j...@kippdata.de>:
> On 16.09.2011 19:24, j...@apache.org wrote:
>> Author: jim
>> Date: Fri Sep 16 17:24:44 2011
>> New Revision: 1171684
>>
>> URL: http://svn.apache.org/viewvc?rev=1171684&view=rev
>> Log:
>> Return -1 from read operation instead of throwing an exception when
>>   encountering an EOF with the HTTP APR connector.
>>
>> Modified:
>>     tomcat/tc5.5.x/trunk/STATUS.txt
>>     
>> tomcat/tc5.5.x/trunk/connectors/http11/src/java/org/apache/coyote/http11/InternalAprInputBuffer.java
>>     tomcat/tc5.5.x/trunk/container/webapps/docs/changelog.xml
>>
>> --- tomcat/tc5.5.x/trunk/STATUS.txt (original)
>> +++ tomcat/tc5.5.x/trunk/STATUS.txt Fri Sep 16 17:24:44 2011
>> @@ -24,13 +24,6 @@ $Id$
>>  PATCHES ACCEPTED TO BACKPORT FROM TRUNK/OTHER:
>>    [ start all new proposals below, under PATCHES PROPOSED. ]
>>
>> -* Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50394
>> -  Return -1 from read operation instead of throwing an exception when
>> -  encountering an EOF with the HTTP APR connector.
>> -  Native 1.1.22 is required for this fix.
>> -  https://issues.apache.org/bugzilla/attachment.cgi?id=27437
>> -  +1: kkolinko, markt, jim
>> -  -1:
>
> Does "Native 1.1.22 is required for this fix." mean "required for a
> complete fix" or "required in order to not introduce another bug"? We
> only updated "recommended" to 1.1.22, not "required", which would be OK
> only in the first case.

It is the first. The added code is executed only when running with
native 1.1.22 and later.

Returning 0 was implemented in native 1.1.22 (r1148814).

Native 1.1.20 will return an error code (the one that signals the EOF)
and Java side will throw new
IOException(sm.getString("iib.failedread"));

Best regards,
Konstantin Kolinko

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

Reply via email to