Skip to content

Commit

Permalink
* Fixed keepalives counter on slave connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Eissing committed Jan 25, 2019
1 parent 2213f55 commit 825de6a
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 375 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.12.2
--------------------------------------------------------------------------------
* Fixed keepalives counter on slave connections.

v1.12.1
--------------------------------------------------------------------------------
* Fixed Bug introduce in v1.12.0 where mod_proxy_http2 no longer set the server name
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#

AC_PREREQ([2.69])
AC_INIT([mod_http2], [1.12.1], [[email protected]])
AC_INIT([mod_http2], [1.12.2], [[email protected]])

LT_PREREQ([2.2.6])
LT_INIT()
Expand Down
11 changes: 6 additions & 5 deletions mod_http2/h2_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ conn_rec *h2_slave_create(conn_rec *master, int slave_id, apr_pool_t *parent)
c->notes = apr_table_make(pool, 5);
c->input_filters = NULL;
c->output_filters = NULL;
c->keepalives = 0;
#if AP_MODULE_MAGIC_AT_LEAST(20180903, 1)
c->filter_conn_ctx = NULL;
#endif
Expand Down Expand Up @@ -343,16 +344,15 @@ conn_rec *h2_slave_create(conn_rec *master, int slave_id, apr_pool_t *parent)
ap_set_module_config(c->conn_config, mpm, cfg);
}

ap_log_cerror(APLOG_MARK, APLOG_TRACE2, 0, c,
"h2_stream(%ld-%d): created slave", master->id, slave_id);
ap_log_cerror(APLOG_MARK, APLOG_TRACE3, 0, c,
"h2_slave(%s): created", c->log_id);
return c;
}

void h2_slave_destroy(conn_rec *slave)
{
ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, slave,
"h2_stream(%s): destroy slave",
apr_table_get(slave->notes, H2_TASK_ID_NOTE));
ap_log_cerror(APLOG_MARK, APLOG_TRACE3, 0, slave,
"h2_slave(%s): destroy", slave->log_id);
slave->sbh = NULL;
apr_pool_destroy(slave->pool);
}
Expand All @@ -376,6 +376,7 @@ apr_status_t h2_slave_run_pre_connection(conn_rec *slave, apr_socket_t *csd)
slave->keepalive = AP_CONN_CLOSE;
return ap_run_pre_connection(slave, csd);
}
ap_assert(slave->output_filters);
return APR_SUCCESS;
}

Loading

0 comments on commit 825de6a

Please sign in to comment.