ds_collect_connection_info (public)

 ds_collect_connection_info

Defined in packages/acs-developer-support/tcl/acs-developer-support-procs.tcl

Collect information about the current connection. Should be called only at the very beginning of the request processor handler.

Partial Call Graph (max 5 caller/called nodes):
%3 rp_filter rp_filter (private) ds_collect_connection_info ds_collect_connection_info rp_filter->ds_collect_connection_info ad_conn ad_conn (public) ds_collect_connection_info->ad_conn ds_add ds_add (public) ds_collect_connection_info->ds_add ds_collection_enabled_p ds_collection_enabled_p (public) ds_collect_connection_info->ds_collection_enabled_p ds_enabled_p ds_enabled_p (public) ds_collect_connection_info->ds_enabled_p ds_replace_get_user_procs ds_replace_get_user_procs (private) ds_collect_connection_info->ds_replace_get_user_procs

Testcases:
No testcase defined.
Source code:
    # JCD: check recursion_count to ensure adding headers only one time.
    if { [ds_enabled_p] && [ds_collection_enabled_p] && ![ad_conn recursion_count]} {
        #
        # This is expensive, but easy.  Otherwise we need to do it in every interpreter
        #
        ds_replace_get_user_procs [ds_user_switching_enabled_p]

        ds_add start [ns_time]
        ds_add conn startclicks [ad_conn start_clicks]

        foreach {key value} [ns_set array [ad_conn headers]] {
            ds_add headers $key $value
        }
        foreach param { method url query request peeraddr } {
            ds_add conn $param [ad_conn $param]
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: