if (method == Method.CONNECT) {
state.keepAlive = false;
} else {
final DataChunk connectionValueDC = headers.getValue(Header.Connection);
final boolean isConnectionClose = (connectionValueDC != null &&
connectionValueDC.equalsIgnoreCaseLowerCase(CLOSE_BYTES));
if (!isConnectionClose) {
state.keepAlive = allowKeepAlive && (isHttp11 ||
(connectionValueDC != null &&
connectionValueDC.equalsIgnoreCaseLowerCase(KEEPALIVE_BYTES)));