You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by rj...@apache.org on 2022/05/27 12:27:06 UTC

[tomcat-connectors] branch main updated: Initialize request id

This is an automated email from the ASF dual-hosted git repository.

rjung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new 162096293 Initialize request id
162096293 is described below

commit 162096293081c8e6d2d598a3815be86750d200e4
Author: Rainer Jung <ra...@kippdata.de>
AuthorDate: Fri May 27 14:26:56 2022 +0200

    Initialize request id
---
 native/apache-2.0/mod_jk.c   | 1 +
 native/iis/jk_isapi_plugin.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/native/apache-2.0/mod_jk.c b/native/apache-2.0/mod_jk.c
index 745dc6b50..28ae3217f 100644
--- a/native/apache-2.0/mod_jk.c
+++ b/native/apache-2.0/mod_jk.c
@@ -821,6 +821,7 @@ static int init_ws_service(apache_private_data_t * private_data,
                                   conf->auth_type_indicator, 1);
     s->remote_user = get_env_string(r, r->user,
                                     conf->remote_user_indicator, 1);
+    s->request_id = apr_table_get(r->subprocess_env, "UNIQUE_ID");
 
     s->protocol = r->protocol;
     s->remote_host = (char *)ap_get_remote_host(r->connection,
diff --git a/native/iis/jk_isapi_plugin.c b/native/iis/jk_isapi_plugin.c
index b071f3218..f2f4320a1 100644
--- a/native/iis/jk_isapi_plugin.c
+++ b/native/iis/jk_isapi_plugin.c
@@ -2963,6 +2963,8 @@ static int init_ws_service(isapi_private_data_t * private_data,
 
     GET_SERVER_VARIABLE_VALUE(HTTP_URI_HEADER_NAME, s->req_uri, NULL);
 
+    /* XXX Add request_id generation */
+    s->request_id = NULL;
     if (s->req_uri == NULL) {
         if (JK_IS_DEBUG_LEVEL(logger))
             jk_log(logger, JK_LOG_DEBUG, "No URI header value provided. Defaulting to old behaviour" );


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org