http09 = false;
contentDelimitation = false;
expectation = false;
+
+ prepareRequestInternal();
+
if (endpoint.isSSLEnabled()) {
request.scheme().setString("https");
}
/**
+ * Connector implementation specific request preparation. Ideally, this will
+ * go away in the future.
+ */
+ protected abstract void prepareRequestInternal();
+
+ /**
* When committing the response, we have to validate the set of headers, as
* well as setup the response filters.
*/
@Override
+ protected void prepareRequestInternal() {
+ sendfileData = null;
+ }
+
+ @Override
protected boolean prepareSendfile(OutputFilter[] outputFilters) {
String fileName = (String) request.getAttribute(
"org.apache.tomcat.sendfile.filename");
@Override
+ protected void prepareRequestInternal() {
+ sendfileData = null;
+ }
+
+ @Override
protected boolean prepareSendfile(OutputFilter[] outputFilters) {
String fileName = (String) request.getAttribute(
"org.apache.tomcat.sendfile.filename");
@Override
+ protected void prepareRequestInternal() {
+ // NOOP for BIO
+ }
+
+ @Override
protected boolean prepareSendfile(OutputFilter[] outputFilters) {
// Should never, ever call this code
Exception e = new Exception();
Correct regression caused by connector re-factoring that made AJP
APR/native connector very unstable on Windows platforms. (markt)
</fix>
+ <fix>
+ Correct regression caused by connector re-factoring that meant that
+ sendfile data was not reset between pipe-lined HTTP requests. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Tribes">