Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
ghx-label-7
Description
IMPALA-9182 prints the socket address of the client closing a session or cancelling a query from the WebUI. There is a 'remote_user' field in sq_request_info. We may be able to print the username when auth is enabled.
// This structure contains information about the HTTP request. struct sq_request_info { const char *request_method; // "GET", "POST", etc const char *uri; // URL-decoded URI const char *http_version; // E.g. "1.0", "1.1" const char *query_string; // URL part after '?', not including '?', or NULL const char *remote_user; // Authenticated user, or NULL if no auth used long remote_ip; // Client's IP address int remote_port; // Client's port int is_ssl; // 1 if SSL-ed, 0 if not void *user_data; // User data pointer passed to sq_start() void *conn_data; // Connection-specific user data int num_headers; // Number of HTTP headers struct sq_header { const char *name; // HTTP header name const char *value; // HTTP header value } http_headers[64]; // Maximum 64 headers };