Skip to content

Commit

Permalink
* Fixed Bug introduce in v1.12.0 where mod_proxy_http2 no longer set…
Browse files Browse the repository at this point in the history
… the server name

   on new backend connections.
  • Loading branch information
Stefan Eissing committed Jan 18, 2019
1 parent 457e412 commit 2213f55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
v1.12.1
--------------------------------------------------------------------------------
* Fixed Bug introduce in v1.12.0 where mod_proxy_http2 no longer set the server name
on new backend connections.
* Fixed issue where mod_proxy_http2 would trigger an invalid internal state when retrying requests.
* applied patch for #167 provided by Michael Kaufmann (@mkauf) about errors on
HEAD requests (h2 streams not closed cleanly), for example those served by mod_cgid.
Expand Down
10 changes: 9 additions & 1 deletion mod_http2/mod_proxy_http2.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static void request_done(h2_proxy_ctx *ctx, request_rec *r,
if (!touched) {
/* untouched request, need rescheduling */
status = h2_proxy_fifo_push(ctx->requests, r);
ap_log_cerror(APLOG_MARK, APLOG_INFO, status, r->connection,
ap_log_cerror(APLOG_MARK, APLOG_DEBUG, status, r->connection,
APLOGNO(03369)
"h2_proxy_session(%s): rescheduled request %s",
ctx->engine_id, task_id);
Expand Down Expand Up @@ -583,6 +583,14 @@ static int proxy_http2_handler(request_rec *r,
*/
apr_table_setn(ctx->p_conn->connection->notes,
"proxy-request-alpn-protos", "h2");
if (ctx->p_conn->ssl_hostname) {
ap_log_cerror(APLOG_MARK, APLOG_TRACE1, status, ctx->owner,
"set SNI to %s for (%s)",
ctx->p_conn->ssl_hostname,
ctx->p_conn->hostname);
apr_table_setn(ctx->p_conn->connection->notes,
"proxy-request-hostname", ctx->p_conn->ssl_hostname);
}
}
}

Expand Down

0 comments on commit 2213f55

Please sign in to comment.