Issue #6642 - change HttpGenerator state to END before returning
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
f7d9d8fcf8
commit
cb9a8d4060
|
@ -344,6 +344,7 @@ public class HttpGenerator
|
|||
_endOfContent = EndOfContent.UNKNOWN_CONTENT;
|
||||
return Result.FLUSH;
|
||||
}
|
||||
_state = State.END;
|
||||
|
||||
// If this is an upgrade then we don't want to close the connection.
|
||||
if (_info.isResponse() && ((MetaData.Response)_info).getStatus() == HttpStatus.SWITCHING_PROTOCOLS_101)
|
||||
|
@ -356,8 +357,6 @@ public class HttpGenerator
|
|||
if (connectionHeader != null && connectionHeader.contains(HttpHeaderValue.UPGRADE.asString()))
|
||||
return Result.DONE;
|
||||
}
|
||||
|
||||
_state = State.END;
|
||||
return Boolean.TRUE.equals(_persistent) ? Result.DONE : Result.SHUTDOWN_OUT;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue