Author: markt
Date: Wed Aug 28 10:43:16 2013
New Revision: 1518153

URL: http://svn.apache.org/r1518153
Log:
Fix some broken exception messages.

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java
    tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties

Modified: tomcat/trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java?rev=1518153&r1=1518152&r2=1518153&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java 
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java Wed 
Aug 28 10:43:16 2013
@@ -600,12 +600,13 @@ public class InternalAprInputBuffer exte
                 lastValid = pos + nRead;
             } else {
                 if ((-nRead) == Status.ETIMEDOUT || (-nRead) == Status.TIMEUP) 
{
-                    throw new 
SocketTimeoutException(sm.getString("iib.failedread"));
+                    throw new 
SocketTimeoutException(sm.getString("iib.readtimeout"));
                 } else if (nRead == 0) {
                     // APR_STATUS_IS_EOF, since native 1.1.22
                     return false;
                 } else {
-                    throw new IOException(sm.getString("iib.failedread"));
+                    throw new IOException(sm.getString("iib.failedread.apr",
+                            Integer.valueOf(-nRead)));
                 }
             }
 

Modified: tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties?rev=1518153&r1=1518152&r2=1518153&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties 
(original)
+++ tomcat/trunk/java/org/apache/coyote/http11/LocalStrings.properties Wed Aug 
28 10:43:16 2013
@@ -34,6 +34,7 @@ iib.filter.npe=You may not add a null fi
 iib.invalidheader=The HTTP header line [{0}] does not conform to RFC 2616 and 
has been ignored.
 iib.invalidmethod=Invalid character (CR or LF) found in method name
 iib.parseheaders.ise.error=Unexpected state: headers already parsed. Buffer 
not recycled?
+iib.readtimeout=Timeout attempting to read data from the socket
 iib.requestheadertoolarge.error=Request header is too large
 iib.socketClosed=The socket has been closed in another thread
 



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

Reply via email to