} catch (IOException e) {
error = true;
}
- recycle(true);
+ recycle(false);
continue;
} else if(type != Constants.JK_AJP13_FORWARD_REQUEST) {
// Usually the servlet didn't read the previous request body
if(log.isDebugEnabled()) {
log.debug("Unexpected message: "+type);
}
- recycle(false);
+ recycle(true);
continue;
}
request.setStartTime(System.currentTimeMillis());
socket.setTimeout(keepAliveTimeout);
}
- recycle(true);
+ recycle(false);
}
rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);
Set <code>reuse</code> flag of final AJP <code>END_RESPONSE</code>
packet to <code>0</code> if we plan to close the connection. (rjung)
</update>
+ <update>
+ Correctly indicate if socket is closing when calling recycle for the AJP
+ NIO processor. Note since the flag is unused in this case there were no
+ bugs triggered by the re-factoring error. (rjung)
+ </update>
</changelog>
</subsection>
<subsection name="Jasper">