406617 fixed close handling during content

This commit is contained in:
Greg Wilkins 2013-04-26 16:10:33 +10:00
parent dbedbfa67e
commit 04bcde9b14
1 changed files with 9 additions and 1 deletions

View File

@ -1340,8 +1340,16 @@ public class HttpParser
case CLOSED:
case END:
break;
case EOF_CONTENT:
_handler.messageComplete();
break;
default:
LOG.warn("Closing {}",this);
if (_state.ordinal()>State.END.ordinal())
_handler.earlyEOF();
else
LOG.warn("Closing {}",this);
}
setState(State.CLOSED);
_endOfContent=EndOfContent.UNKNOWN_CONTENT;