From 0bcdd7ef4a47c77f36eece38e7d3a22e8c56712a Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Tue, 7 Mar 2017 07:46:35 +1100 Subject: [PATCH] Issue 1363 comments --- .../src/main/java/org/eclipse/jetty/server/HttpInput.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java index 3a411819452..490f1b02e18 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpInput.java @@ -271,7 +271,7 @@ public class HttpInput extends ServletInputStream implements Runnable } } - // Caclulate minimum request rate for DOS protection + // Calculate minimum request rate for DOS protection long minRequestDataRate = _channelState.getHttpChannel().getHttpConfiguration().getMinRequestDataRate(); if (minRequestDataRate > 0 && _firstByteTimeStamp != -1) { @@ -858,6 +858,7 @@ public class HttpInput extends ServletInputStream implements Runnable { if (error != null) { + // TODO is this necessary to add here? _channelState.getHttpChannel().getResponse().getHttpFields().add(HttpConnection.CONNECTION_CLOSE); listener.onError(error); }