View | Details | Raw Unified | Return to bug 40960
Collapse All | Expand All

(-)connectors/http11/src/java/org/apache/coyote/http11/InternalAprInputBuffer.java (-1 / +6 lines)
Lines 20-25 Link Here
20
20
21
import java.io.IOException;
21
import java.io.IOException;
22
import java.io.EOFException;
22
import java.io.EOFException;
23
import java.net.SocketTimeoutException;
23
import java.nio.ByteBuffer;
24
import java.nio.ByteBuffer;
24
25
25
import org.apache.tomcat.jni.Socket;
26
import org.apache.tomcat.jni.Socket;
Lines 822-828 Link Here
822
                bbuf.get(buf, 0, nRead);
823
                bbuf.get(buf, 0, nRead);
823
                lastValid = nRead;
824
                lastValid = nRead;
824
            } else {
825
            } else {
825
                throw new IOException(sm.getString("iib.failedread"));
826
                if ((-nRead) == Status.ETIMEDOUT || (-nRead) == Status.TIMEUP) {
827
                    throw new SocketTimeoutException(sm.getString("iib.failedread"));
828
                } else {
829
                    throw new IOException(sm.getString("iib.failedread"));
830
                }
826
            }
831
            }
827
832
828
        }
833
        }

Return to bug 40960