Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Not A Bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: HTTP
-
Labels:None
-
Environment:Linux
-
Number of attachments :
Description
the check performed for response complete is wrong .
below is the function AbstarctGenerator.complete()
/**
- Complete the message.
- @throws IOException
*/
public void complete() throws IOException
{
if (_state == STATE_HEADER) { throw new IllegalStateException("State==HEADER"); }
if (_contentLength >= 0 && _contentLength != _contentWritten && !_head)
{ if (Log.isDebugEnabled()) Log.debug("ContentLength written=="+_contentWritten+" != contentLength=="+_contentLength); _close = true; }}
here the check should be if (_contentLength >= 0 && _contentLength == _contentWritten && !_head)
which marks the condition that whole response has been written and nothing is left.
i don't think this is a bug.
Sorry for the inconvenience.