nsmcp::cleanup

 nsmcp::cleanup

Defined in

Partial Call Graph (max 5 caller/called nodes):
Class ::nsmcp::HttpTransport Class ::nsmcp::HttpTransport (public) nsmcp::cleanup nsmcp::cleanup Class ::nsmcp::HttpTransport->nsmcp::cleanup Class ::nsmcp::Server Class ::nsmcp::Server (public) Class ::nsmcp::Server->nsmcp::cleanup http http http->nsmcp::cleanup instproc instproc instproc->nsmcp::cleanup nsmcp::HttpTransport instproc request nsmcp::HttpTransport instproc request (public) nsmcp::HttpTransport instproc request->nsmcp::cleanup nsf::object::exists nsf::object::exists nsmcp::cleanup->nsf::object::exists

Testcases:
No testcase defined.
Source code:
    variable temporary
    if {![info exists temporary]} {
        return
    }
    set objects [dict keys $temporary]
    unset temporary
    foreach object [lreverse $objects] {
        if {[::nsf::object::exists $object]} {
            if {[catch {
                $object destroy
            }]} {
                if {[info commands ns_log] ne ""} {
                    ns_log error "nsmcp: temporary object cleanup failed"
                }
                # Never return a potentially contaminated interpreter to pool.
                if {[info commands ns_ictl] ne ""} {
                    ns_ictl markfordelete
                }
            }
        }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: