ASF Bugzilla – Attachment 19328 Details for
Bug 40960
Timeout when reading from underlying socket does throw IOException with APR and SocketTimeoutException without APR
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch incorporating inline suggested code change
InternalAprInputBuffer.patch (text/plain), 1.04 KB, created by
Chris Halstead
on 2006-12-29 12:09:23 UTC
(
hide
)
Description:
Patch incorporating inline suggested code change
Filename:
MIME Type:
Creator:
Chris Halstead
Created:
2006-12-29 12:09:23 UTC
Size:
1.04 KB
patch
obsolete
>Index: connectors/http11/src/java/org/apache/coyote/http11/InternalAprInputBuffer.java >=================================================================== >--- connectors/http11/src/java/org/apache/coyote/http11/InternalAprInputBuffer.java (revision 491080) >+++ connectors/http11/src/java/org/apache/coyote/http11/InternalAprInputBuffer.java (working copy) >@@ -20,6 +20,7 @@ > > import java.io.IOException; > import java.io.EOFException; >+import java.net.SocketTimeoutException; > import java.nio.ByteBuffer; > > import org.apache.tomcat.jni.Socket; >@@ -822,7 +823,11 @@ > bbuf.get(buf, 0, nRead); > lastValid = nRead; > } else { >- throw new IOException(sm.getString("iib.failedread")); >+ if ((-nRead) == Status.ETIMEDOUT || (-nRead) == Status.TIMEUP) { >+ throw new SocketTimeoutException(sm.getString("iib.failedread")); >+ } else { >+ throw new IOException(sm.getString("iib.failedread")); >+ } > } > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40960
: 19328