X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=modules%2Fhttp2%2Fh2_conn.c;h=f37d95172740924019a0b78da44b83ca018e3861;hb=5bdb7b75121bf7dc37bfc3f81c59e44013e1c4de;hp=53497d03efe24f8b5c3019db7c3a45d12b6b772e;hpb=94dffd15496e39d64cc1eb49657adfe1a7a7c408;p=apache diff --git a/modules/http2/h2_conn.c b/modules/http2/h2_conn.c index 53497d03ef..f37d951727 100644 --- a/modules/http2/h2_conn.c +++ b/modules/http2/h2_conn.c @@ -253,25 +253,12 @@ apr_status_t h2_conn_run(struct h2_ctx *ctx, conn_rec *c) } while (!async_mpm && c->keepalive == AP_CONN_KEEPALIVE && mpm_state != AP_MPMQ_STOPPING); - + if (c->cs) { - switch (session->state) { - case H2_SESSION_ST_INIT: - case H2_SESSION_ST_CLEANUP: - case H2_SESSION_ST_DONE: - case H2_SESSION_ST_IDLE: - c->cs->state = CONN_STATE_WRITE_COMPLETION; - break; - case H2_SESSION_ST_BUSY: - case H2_SESSION_ST_WAIT: - default: - c->cs->state = CONN_STATE_HANDLER; - break; - - } + c->cs->state = CONN_STATE_LINGER; } - - return DONE; + + return APR_SUCCESS; } apr_status_t h2_conn_pre_close(struct h2_ctx *ctx, conn_rec *c)