https://issues.apache.org/bugzilla/show_bug.cgi?id=56290

--- Comment #4 from Massimo Manghi <mxman...@apache.org> ---
 We have been living dangerously for quite a long time not handling correctly
the execution of a command that makes generally sense only within a request
process. (I should check out other commands for the same problem)

When ::rivet::env is called from within a initialization or exit handler should
probably return a Tcl error. If your application needs to know the host name of
the running application it should probably obtained by other means. After all
the HTTP_HOST could take different values in the same application (by just
having another CNAME pointing to the same server instance)

My proposal is to have ::rivet::inspect handle this case 

 ::rivet::inspect server host_name

returning the sr->server_hostname string defined in the server_rec object

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to