Issue 1363 comments

This commit is contained in:
Greg Wilkins 2017-03-07 07:46:35 +11:00
parent ed535db2d5
commit 0bcdd7ef4a
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}