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

(-)java/org/apache/coyote/ajp/AjpAprProcessor.java (+3 lines)
Lines 1258-1263 Link Here
1258
        throws IOException {
1258
        throws IOException {
1259
        if (outputBuffer.position() > 0) {
1259
        if (outputBuffer.position() > 0) {
1260
            if ((socket != 0) && Socket.sendbb(socket, 0, outputBuffer.position()) < 0) {
1260
            if ((socket != 0) && Socket.sendbb(socket, 0, outputBuffer.position()) < 0) {
1261
                // There are no re-tries so clear the buffer to prevent a
1262
                // possible overflow if the buffer is used again. BZ53119.
1263
                outputBuffer.clear();
1261
                throw new IOException(sm.getString("ajpprocessor.failedsend"));
1264
                throw new IOException(sm.getString("ajpprocessor.failedsend"));
1262
            }
1265
            }
1263
            outputBuffer.clear();
1266
            outputBuffer.clear();

Return to bug 53119